From dccd33309d7c0ea68b93e26454a1b832a2ac1fea Mon Sep 17 00:00:00 2001 From: Andre Fachat Date: Thu, 31 Oct 2019 22:24:30 +0100 Subject: [PATCH] add tests for error situation --- xa/tests/neg_offset/Makefile | 12 ++++++++++++ xa/tests/neg_offset/test1.s | 6 ++++++ xa/tests/neg_offset/test2.s | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 xa/tests/neg_offset/Makefile create mode 100644 xa/tests/neg_offset/test1.s create mode 100644 xa/tests/neg_offset/test2.s diff --git a/xa/tests/neg_offset/Makefile b/xa/tests/neg_offset/Makefile new file mode 100644 index 0000000..86ae8c3 --- /dev/null +++ b/xa/tests/neg_offset/Makefile @@ -0,0 +1,12 @@ +default: test1 test2 + +test1: + ../../xa -R -LLIB6502 test1.s -o test1.o + ../hextool -cmp=ok < test1.o + +test2: + ../../xa -R -LLIB6502 test2.s -o test2.o + ../hextool -cmp=ok < test2.o + +clean: + rm -f *.o diff --git a/xa/tests/neg_offset/test1.s b/xa/tests/neg_offset/test1.s new file mode 100644 index 0000000..8ce08a0 --- /dev/null +++ b/xa/tests/neg_offset/test1.s @@ -0,0 +1,6 @@ + + .text + + jsr LIB6502-3 + + diff --git a/xa/tests/neg_offset/test2.s b/xa/tests/neg_offset/test2.s new file mode 100644 index 0000000..ec436b2 --- /dev/null +++ b/xa/tests/neg_offset/test2.s @@ -0,0 +1,9 @@ + +#define flib2osa_r LIB6502-3 + + .text + + jsr flib2osa_r + + +