From f25481778bdf6f72092b8586b5abaa62d838e939 Mon Sep 17 00:00:00 2001 From: fachat Date: Sat, 28 Jul 2012 14:53:23 +0200 Subject: [PATCH] First tests for ca65 features --- xa/tests/ca65/Makefile | 20 ++++++++++++++++++++ xa/tests/ca65/unnamed1.a65 | 14 ++++++++++++++ xa/tests/ca65/unnamed1.o | Bin 0 -> 13 bytes xa/tests/ca65/unnamed2.a65 | 16 ++++++++++++++++ xa/tests/ca65/unnamed2.err | 2 ++ 5 files changed, 52 insertions(+) create mode 100755 xa/tests/ca65/Makefile create mode 100755 xa/tests/ca65/unnamed1.a65 create mode 100755 xa/tests/ca65/unnamed1.o create mode 100755 xa/tests/ca65/unnamed2.a65 create mode 100755 xa/tests/ca65/unnamed2.err 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 0000000000000000000000000000000000000000..af5b9deaa80c8289807dcd75becfc476e1efa1ff GIT binary patch literal 13 VcmZ356nL74htAx0RS(H22cP1 literal 0 HcmV?d00001 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