Updated the parser to be able to handle the changes made to the ISA.

This commit is contained in:
2023-06-18 00:50:18 -05:00
parent 403439def4
commit 0eaa5527ea
5 changed files with 139 additions and 152 deletions
+3 -4
View File
@@ -4,11 +4,10 @@
.db msg "Hello, world!", 0
.db NOTERM "No terminating byte here"
.db null_byte 0
jmp [r4]
;load r2, label
something_insance:
load r1, unknown_symbol
load byte r1, r3
load r1, 5
.db fun_alright 0x70;does this break?
load r3, r4
@@ -23,6 +22,6 @@ inc r1 ;increment r1
xor r1, r1 ;clear self
pop r3
jmp unknown_symbol
jmp r4
jz unknown_symbol
jmp [r4]
jz [r6]
;And a comment at the end