parsing seems to be working fine

This commit is contained in:
Henrik Boeving
2020-11-28 17:44:06 +01:00
parent 111ca93a31
commit 2348f7889b
13 changed files with 478 additions and 1 deletions

3
examples/add_endless.asm Normal file
View File

@@ -0,0 +1,3 @@
LDA #0
ADD: ADD #1
JMP ADD

2
examples/comments.asm Normal file
View File

@@ -0,0 +1,2 @@
// comment
LDA #1

3
examples/labels.asm Normal file
View File

@@ -0,0 +1,3 @@
START: LDA #1
// Jumps to the label start
JMP START

14
examples/list_of_ops.asm Normal file
View File

@@ -0,0 +1,14 @@
NOP
LDA #1
LDA (1)
STA (1)
ADD #1
ADD (1)
SUB #1
SUB (1)
JMP 0
BRZ #1
BRC #1
BRN #1
MYLABEL: NOP
JMP MYLABEL