CPU Architecture (cont)
Common kinds of instructions (not from any real machine)
-
load Register, MemoryAddress
- copy value stored in memory at address into named register
-
loadc Register, ConstantValue
- copy value into named register
-
store Register, MemoryAddress
- copy value stored in named register into memory at address
-
jump MemoryAddress
- transfer execution of program to instruction at address
-
jumpif Register, MemoryAddress
- transfer execution of program if e.g. register holds zero value
|