Simple Computer 2
IP
0
R0
0
R1
0
R2
0
R3
0
CS
0
DS
0
SP
0
BR
0
Instruction Decoder
ALU
Z
N
O
Start
Step
Reset
Clear
Save
Load
Speed: slow fast
Memory Store
Memory Stack

Op-Codes
MOV Rx, xx ;immediate
MOV Rx, [xx] ;direct
MOV Rx, [[xx]] ;indirect
MOV Rx, Ry ;register
MOV [xx], Rx ;or Store i.e. STO Rx, [xx]
ADD, SUB, MUL, DIV, RDR
INC Rx, DEC Rx
JMP xx (or relative +xx, or -xx )
JNZ Rx, xx
JEZ Rx, xx
JN Rx, xx
JP Rx, xx
PSH Rx, POP Rx
CALL xx
RET
STP
Insert
Clear
Delete
Cancel