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:
+7
-1
@@ -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
|
||||
Reference in New Issue
Block a user