3. Fetch Execute Cycle #
Instruction processing consists of two steps: fetch and execute.
Instruction Fetch and Execute #
In this example:
- The PC contains 300, the address of the first instruction. The instruction is loaded into the IR, and the PC is incremented.
- The first 4 bits in the IR indicate that the AC is to be loaded. The remaining 12 bits specifiy the address from which data are to be loaded.
- The next isntruction is fetched from address 301, PC is incremented.
- Old contents of AC and the contents of address 941 are added, and result stored in AC.
- The next instruction is fetched from address 302, PC is incremented.
- The contents of the AC are stored in address 941.