mirror of
https://github.com/fachat/xa65.git
synced 2025-01-30 03:33:47 +00:00
First tests for ca65 features
This commit is contained in:
parent
f04d44d141
commit
f25481778b
20
xa/tests/ca65/Makefile
Executable file
20
xa/tests/ca65/Makefile
Executable file
@ -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
|
||||
|
14
xa/tests/ca65/unnamed1.a65
Executable file
14
xa/tests/ca65/unnamed1.a65
Executable file
@ -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
|
||||
|
BIN
xa/tests/ca65/unnamed1.o
Executable file
BIN
xa/tests/ca65/unnamed1.o
Executable file
Binary file not shown.
16
xa/tests/ca65/unnamed2.a65
Executable file
16
xa/tests/ca65/unnamed2.a65
Executable file
@ -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
|
||||
|
2
xa/tests/ca65/unnamed2.err
Executable file
2
xa/tests/ca65/unnamed2.err
Executable file
@ -0,0 +1,2 @@
|
||||
unnamed2.a65:line 9: 4007:Label '(null)' not defined
|
||||
Break after 1 errors
|
Loading…
x
Reference in New Issue
Block a user