Patent ID: 7055000

Claim:
A disk drive for executing a program comprising a plurality of instructions, the disk drive comprising: (a) a disk; (b) a head actuated over the disk; (c) a primary memory for storing a plurality of the instructions; (d) a cache memory for caching a subset of the instructions stored in the primary memory; (e) a microprocessor for executing the instructions; and (f) a memory controller for transferring the instructions to the microprocessor, wherein: the memory controller transfers an instruction from the cache memory to the microprocessor if the instruction is stored in the cache memory; the memory controller transfers the instruction from the primary memory to the microprocessor if the instruction is not stored in the cache memory; and the memory controller replaces at least one instruction stored in the cache memory with an instruction stored in the primary memory if: the memory controller transfers a first instruction and a second instruction to the microprocessor; the first instruction and second instruction have sequential addresses; and the second instruction is transferred from the primary memory.