In a HDD with a magnetic polarization. Pretty much just like a permanent magnet being created.
In a SSD or other Flash storage a charge is trapped inside. So basically a capacitor with a very small leakage current so they don’t run out for long enough.
There are also concepts for RAM with battery supply, but that is usually mostly used for server farms where speed is more important than longterm storage efficiency
OPcode for processors isn’t saved anywhere really, it’s baked into the circuits directly, so it’s hardware and not software. (Just like a waterpipe network doesn’t need to remember where it’s pipes lead to send water that way)
Latest Answers