-
Notifications
You must be signed in to change notification settings - Fork 0
Execution
Matthew Joyce edited this page Jan 20, 2015
·
13 revisions
- Fetch the value from memory at the address of the instruction counter
- Increment the instruction counter
- Decode the instruction
- Execute the instruction (e.g. halt, or store)
- Repeat until halted
Simple and effective.
-
Invalid memory address- The address is not in the range (0 - 99). -
Invalid instruction- The instruction is not recognised.
- Memory is stored in a decimalised twos-complement (
999==-1,998==-2, ...,500==-500,499==499, ...,0==0)