From 413d7f194b6257fdca319cb225e766a4c2134c8b Mon Sep 17 00:00:00 2001 From: Andre Fachat Date: Thu, 31 Oct 2019 22:15:13 +0100 Subject: [PATCH] add test for pre-processor replacing strings --- xa/tests/ppstrings/Makefile | 6 ++++++ xa/tests/ppstrings/ok | Bin 0 -> 21 bytes xa/tests/ppstrings/test.s | 15 +++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 xa/tests/ppstrings/Makefile create mode 100644 xa/tests/ppstrings/ok create mode 100644 xa/tests/ppstrings/test.s diff --git a/xa/tests/ppstrings/Makefile b/xa/tests/ppstrings/Makefile new file mode 100644 index 0000000..59593c0 --- /dev/null +++ b/xa/tests/ppstrings/Makefile @@ -0,0 +1,6 @@ +default: + ../../xa test.s -o test.o + ../hextool -cmp=ok < test.o + +clean: + rm -f *.o diff --git a/xa/tests/ppstrings/ok b/xa/tests/ppstrings/ok new file mode 100644 index 0000000000000000000000000000000000000000..64104b3d39834621a068368b6e23242bdbb341de GIT binary patch literal 21 UcmZ<>4PY>E0TNK`5(?x205@j^Hvj+t literal 0 HcmV?d00001 diff --git a/xa/tests/ppstrings/test.s b/xa/tests/ppstrings/test.s new file mode 100644 index 0000000..ba9f521 --- /dev/null +++ b/xa/tests/ppstrings/test.s @@ -0,0 +1,15 @@ + +#define DUP 123 + + .asc "DUP^@" + + .asc '0DUP^@' + + .asc "D","UP^@" + + .asc "DUP + + .asc "DU0 + + .asc "DU +