diff --git a/xa/tests/ca65/Makefile b/xa/tests/ca65/Makefile new file mode 100755 index 0000000..1a887a7 --- /dev/null +++ b/xa/tests/ca65/Makefile @@ -0,0 +1,20 @@ +# +# Makefile for tests +# + +XA=../../xa + +tests: unn1 unn2 + + +unn1: unnamed1.a65 + ${XA} -XCA65 $< + cmp unnamed1.o a.o65 + +unn2: unnamed2.a65 + ${XA} -XCA65 $< 2>a.err || true + cmp unnamed2.err a.err + +clean: + rm -f a.err a.o65 + diff --git a/xa/tests/ca65/unnamed1.a65 b/xa/tests/ca65/unnamed1.a65 new file mode 100755 index 0000000..6e3b745 --- /dev/null +++ b/xa/tests/ca65/unnamed1.a65 @@ -0,0 +1,14 @@ + +// test of unnamed labels + +start *=$4000 + + lda #$00 +: iny ; first + bne :- ; go to first + beq :++ ; go to third +: ; second + jmp :- ; go to second +: ldy #1 ; third + nop + diff --git a/xa/tests/ca65/unnamed1.o b/xa/tests/ca65/unnamed1.o new file mode 100755 index 0000000..af5b9de Binary files /dev/null and b/xa/tests/ca65/unnamed1.o differ diff --git a/xa/tests/ca65/unnamed2.a65 b/xa/tests/ca65/unnamed2.a65 new file mode 100755 index 0000000..d319caa --- /dev/null +++ b/xa/tests/ca65/unnamed2.a65 @@ -0,0 +1,16 @@ + +// test of unnamed labels + +start *=$4000 + + lda #$00 +: iny ; first + bne :- ; go to first + beq :++ ; go to third + .block +: ; second + jmp :- ; go to second +: ldy #1 ; third + .bend + nop + diff --git a/xa/tests/ca65/unnamed2.err b/xa/tests/ca65/unnamed2.err new file mode 100755 index 0000000..5d877f6 --- /dev/null +++ b/xa/tests/ca65/unnamed2.err @@ -0,0 +1,2 @@ +unnamed2.a65:line 9: 4007:Label '(null)' not defined +Break after 1 errors