1
0
mirror of https://github.com/fachat/xa65.git synced 2024-12-29 07:29:50 +00:00

fixed and added tests for ca65 compatibility

This commit is contained in:
fachat 2012-07-29 19:08:14 +02:00
parent d2953a516f
commit 69b1d8fb7e
11 changed files with 44 additions and 13 deletions

22
xa/tests/ca65/Makefile Executable file → Normal file
View File

@ -4,17 +4,31 @@
XA=../../xa
tests: unn1 unn2
CA65=ca65
LD65=ld65
tests: unnamed1 unnamed2 escape1 escape2 clean
unn1: unnamed1.a65
unnamed1: unnamed1.a65
#${CA65} $<; ${LD65} -t none -o unnamed1.ca65 unnamed1.o; rm unnamed1.o
${XA} -XCA65 $<
cmp unnamed1.o a.o65
cmp unnamed1.ca65 a.o65
unn2: unnamed2.a65
unnamed2: unnamed2.a65
#${CA65} $<; ${LD65} -t none -o unnamed2.ca65 unnamed2.o; rm unnamed2.o
${XA} -XCA65 $< 2>a.err || true
cmp unnamed2.err a.err
escape1: escape1.a65
${XA} $<
cmp escape1.out a.o65
escape2: escape2.a65
#${CA65} $<; ${LD65} -t none -o escape2.ca65 escape2.o; rm escape2.o
${XA} -XCA65 $< 2>a.err || true
cmp escape2.ca65 a.o65
clean:
rm -f a.err a.o65

View File

@ -0,0 +1,6 @@
*=$1000
lda #"^^"

View File

@ -0,0 +1 @@
ゥ^

View File

@ -0,0 +1,6 @@
.org $1000
lda #'^'

View File

@ -0,0 +1 @@
ゥ^

7
xa/tests/ca65/unnamed1.a65 Executable file → Normal file
View File

@ -1,7 +1,7 @@
// test of unnamed labels
; test of unnamed labels
start *=$4000
start: .org $4000
lda #$00
: iny ; first
@ -9,6 +9,7 @@ start *=$4000
beq :++ ; go to third
: ; second
jmp :- ; go to second
jmp :++
: ldy #1 ; third
nop
: nop

BIN
xa/tests/ca65/unnamed1.ca65 Normal file

Binary file not shown.

Binary file not shown.

11
xa/tests/ca65/unnamed2.a65 Executable file → Normal file
View File

@ -1,16 +1,17 @@
// test of unnamed labels
; test of unnamed labels
start *=$4000
start: .org $4000
lda #$00
: iny ; first
bne :- ; go to first
beq :++ ; go to third
.block
.scope
: ; second
jmp :- ; go to second
jmp :++
: ldy #1 ; third
.bend
nop
.endscope
: nop

BIN
xa/tests/ca65/unnamed2.ca65 Normal file

Binary file not shown.

3
xa/tests/ca65/unnamed2.err Executable file → Normal file
View File

@ -1,2 +1,3 @@
unnamed2.a65:line 9: 4007:Label '(null)' not defined
Break after 1 errors
unnamed2.a65:line 13: 400e:Label '(null)' not defined
Break after 2 errors