diff --git a/xa/tests/adrm/Makefile b/xa/tests/adrm/Makefile new file mode 100644 index 0000000..b847663 --- /dev/null +++ b/xa/tests/adrm/Makefile @@ -0,0 +1,5 @@ + +tests: + ./runtest.sh -q -C + + diff --git a/xa/tests/adrm/a.out-02 b/xa/tests/adrm/a.out-02 new file mode 100644 index 0000000..f6bd5e1 Binary files /dev/null and b/xa/tests/adrm/a.out-02 differ diff --git a/xa/tests/adrm/a.out-816 b/xa/tests/adrm/a.out-816 new file mode 100644 index 0000000..218516c Binary files /dev/null and b/xa/tests/adrm/a.out-816 differ diff --git a/xa/tests/adrm/a.out-c02 b/xa/tests/adrm/a.out-c02 new file mode 100644 index 0000000..f6b29d1 Binary files /dev/null and b/xa/tests/adrm/a.out-c02 differ diff --git a/xa/tests/adrm/a.out-zab b/xa/tests/adrm/a.out-zab new file mode 100644 index 0000000..357f4d3 Binary files /dev/null and b/xa/tests/adrm/a.out-zab differ diff --git a/xa/tests/adrm/a.out-zab2 b/xa/tests/adrm/a.out-zab2 new file mode 100644 index 0000000..766f58c Binary files /dev/null and b/xa/tests/adrm/a.out-zab2 differ diff --git a/xa/tests/adrm/a.out-zpa b/xa/tests/adrm/a.out-zpa new file mode 100644 index 0000000..b339220 Binary files /dev/null and b/xa/tests/adrm/a.out-zpa differ diff --git a/xa/tests/adrm/a.out-zpa2 b/xa/tests/adrm/a.out-zpa2 new file mode 100644 index 0000000..d7bbeed Binary files /dev/null and b/xa/tests/adrm/a.out-zpa2 differ diff --git a/xa/tests/adrm/bip2.inc b/xa/tests/adrm/bip2.inc new file mode 100644 index 0000000..3ad6318 --- /dev/null +++ b/xa/tests/adrm/bip2.inc @@ -0,0 +1,28 @@ +/* + +- tbasic.0.asm: if you make vecwri absolute with !, then the branch gets + generated as if it were NOT absolute. works okay without it (and + gets a warning) + +*/ + +test lda !$0095 + bne test + + ldx #13 +lup0 lda !vecwri,x + sta $2005,x + dex + bne lup0 + lda #$00 + sta $0020 + lda #$02 + sta $0021 + lda #$ff + sta $0022 + lda #$13 + sta $0023 + jmp $2003 + +vectors .byt $4c, $5a, $1e, $4c, $a0, $1e, $4c, $00, $01 +vecwri = vectors - 1 diff --git a/xa/tests/adrm/runtest.sh b/xa/tests/adrm/runtest.sh index 929afe3..ccb8610 100755 --- a/xa/tests/adrm/runtest.sh +++ b/xa/tests/adrm/runtest.sh @@ -8,8 +8,24 @@ THISDIR=`pwd` echo "0=$0" echo "THISDIR=$THISDIR" +declare -A opts +#opts=([816.asm]="-w") +opts[02.asm]="-C" +opts[816.asm]="-w" +opts[zab.asm]="-w" +opts[zpa.asm]="-w" + +#ASMFLAGS=-v +ASMFLAGS= + +# exclude filter from *.asm if no explicit file is given EXCLUDE= -TESTFILES= + +# test files used +TESTFILES="bip.inc bip2.inc" + +# files to compare afterwards, against -