-
Notifications
You must be signed in to change notification settings - Fork 0
Execution
Matthew Joyce edited this page Sep 23, 2014
·
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.
While running, yaplmc also checks for:
- Invalid memory addresses
- Invalid instructions
This section refers the the CLI program. For the GUI version, see .
yaplmc comes with several debugging levels (the layers stack, so the information about layers above :
- This is the default. No debug information is printed.
- The current instruction is printed, along with the action it will perform.
- Stuff from level 1, and the memory, accumulator and instruction counter is also printed at each step.
- Stuff from level 2, and prints numeric code of current instruction, and other information which is probably not useful.