/ Resources / Design / Class Definitions / CPU |
|
Class: |
CPU |
Name: |
CPU |
Comment: |
Simulates P-Code CPU, normally executes in a simple loop.
fetchInstruction
if interruptsEnabled thenoneTick
|
Collaborators: |
Interrupt - store information about type,
source etc Instruction - store opcode, parameter etc Address - possibly used for translation mechanisms PriorityQueue - used to store interrupts that are scheduled to happen |