parsing seems to be working fine
This commit is contained in:
3
examples/add_endless.asm
Normal file
3
examples/add_endless.asm
Normal file
@@ -0,0 +1,3 @@
|
||||
LDA #0
|
||||
ADD: ADD #1
|
||||
JMP ADD
|
||||
2
examples/comments.asm
Normal file
2
examples/comments.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
// comment
|
||||
LDA #1
|
||||
3
examples/labels.asm
Normal file
3
examples/labels.asm
Normal file
@@ -0,0 +1,3 @@
|
||||
START: LDA #1
|
||||
// Jumps to the label start
|
||||
JMP START
|
||||
14
examples/list_of_ops.asm
Normal file
14
examples/list_of_ops.asm
Normal 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
|
||||
Reference in New Issue
Block a user