$\require{cancel}$
while not halt
get the instruction from memory pointed to by the PC
PC++
decode the instruction
execute the instruction.
dest ← source
bus ← pc indicates that the cpu should move the value of the pc to the bus.
bus ← pc
mar ← bus
pc ← pc + 1
memory fetch
bus ← mdr
ir ← bus
pc ← pc+1 is hardware dependent.
cout << 3 + 2
0: Load 5 1: Add 4 2: Output 3: Halt 4: 2 5: 3
0x15 0x24 0xe0 0xf0 0x02 0x03