jump indirect seems to be working as well

This commit is contained in:
Henrik Böving
2020-11-30 18:28:25 +01:00
parent 9d650b1f7c
commit 5755ade839
5 changed files with 23 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ jump_instruction = {"JMP"}
arg_instruction = {"LDA" | "ADD" | "SUB"}
no_arg_instruction = { "NOP" }
jump_argument = { jump_location | label }
jump_argument = { jump_location | label | memory_location }
argument = { memory_location | digit_literal }
memory_location = { "(" ~ ASCII_HEX_DIGIT ~")" }
digit_literal = {"#" ~ ASCII_HEX_DIGIT}