2 ms·
Not quite. Microcode implements (typically complex) instructions in terms of simpler ones, and it is stored on the chip. The simpler instructions may or may no
by Someone 12y ago
Not quite.
Microcode implements (typically complex) instructions in terms of simpler ones, and it is stored on the chip. The simpler instructions may or may not be a subset of the existing instructions of the CPU. Executing microcode may (and, I guess, does, certainly historically) even use the same instruction decoder that 'normal' instructions use. If so, you can see microcode as hardware that traps the CPU when it encounters an instruction that the hardware claims to handle, but doesn't combined with a very fast read-only instruction cache that emulates those instructions in software.
Some CPUs split complex (for some definition of complex) operations into simpler units called micro-instructions because having more simpler instructions make it possible to make better use of available hardware (a slightly flawed comparison is that of bin packing. It becomes way easier to get decent results there if you cut the packages into smaller parts)