Updated the parser to validate most of the opcodes. NOP falls through via the default case since it takes no parameters but the jump instructions need some thought before proceeding.

This commit is contained in:
2023-03-29 20:57:04 -05:00
parent 2e888913be
commit a9a50055a4
2 changed files with 72 additions and 21 deletions
+7 -1
View File
@@ -11,4 +11,10 @@ load byte r1, r3
load r1, 5
load r3, r4
store byte r3, r5
store r5, r7
store r5, r7
cmp r1, r4
cmp r1, 5
and r1, r2
add r4, r7
inc r1 ;increment r1
xor r1, r1 ;clear self