NOP, CMP, JMP ok. JEQ maybe not
This commit is contained in:
13
program.asm
13
program.asm
@@ -1,6 +1,13 @@
|
||||
;this is a comment
|
||||
JMP 5 ; this is one too
|
||||
MOV 1 2 ; hellooo?
|
||||
MOV 3 2 ; should jump here, R1 should be untouched
|
||||
JMP 4
|
||||
|
||||
|
||||
HLT
|
||||
NOP
|
||||
MOV R1, R2 ; hellooo?
|
||||
;MOV R3, R2 ; should jump here, R1 should be untouched
|
||||
CMP R1, R2
|
||||
JEQ R1, 2
|
||||
ADD R1, R2
|
||||
HLT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user