NOP, CMP, JMP ok. JEQ maybe not

This commit is contained in:
xamidev
2024-10-18 23:32:44 +02:00
parent 68bda98d1a
commit 14e8802497
2 changed files with 63 additions and 26 deletions

View File

@@ -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