From 3a021c8a2e0c5044f01476254b53c8981ba26578 Mon Sep 17 00:00:00 2001 From: Andre Fachat Date: Thu, 31 Oct 2019 22:42:13 +0100 Subject: [PATCH] add test for absolute embedded into reloc --- xa/tests/reset_segment/Makefile | 4 +++- xa/tests/reset_segment/{ok => ok1} | Bin xa/tests/reset_segment/ok2 | Bin 0 -> 76 bytes xa/tests/reset_segment/test2.s | 23 +++++++++++++++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) rename xa/tests/reset_segment/{ok => ok1} (100%) create mode 100644 xa/tests/reset_segment/ok2 create mode 100644 xa/tests/reset_segment/test2.s diff --git a/xa/tests/reset_segment/Makefile b/xa/tests/reset_segment/Makefile index 768ff2b..acb6107 100644 --- a/xa/tests/reset_segment/Makefile +++ b/xa/tests/reset_segment/Makefile @@ -2,7 +2,9 @@ default: test1 test1: ../../xa -R -LLIB6502 test1.s -o test1.o - ../hextool -cmp=ok < test1.o + ../hextool -cmp=ok1 < test1.o + ../../xa -R test2.s -o test2.o + ../hextool -cmp=ok2 < test2.o clean: rm -f *.o diff --git a/xa/tests/reset_segment/ok b/xa/tests/reset_segment/ok1 similarity index 100% rename from xa/tests/reset_segment/ok rename to xa/tests/reset_segment/ok1 diff --git a/xa/tests/reset_segment/ok2 b/xa/tests/reset_segment/ok2 new file mode 100644 index 0000000000000000000000000000000000000000..4dfc6c17b38e1a248817ece89326adb0bc111ca2 GIT binary patch literal 76 zcmZQ%$Tu@(00IGN1_l-&?Es;GthFXWYefYTlZx|mN=s6q+@jQ+{A8dcYZC(l6GK{l QJ_DnPP*P$M1Cyu#0LM8Ey#N3J literal 0 HcmV?d00001 diff --git a/xa/tests/reset_segment/test2.s b/xa/tests/reset_segment/test2.s new file mode 100644 index 0000000..9240c10 --- /dev/null +++ b/xa/tests/reset_segment/test2.s @@ -0,0 +1,23 @@ + + ; test absolute code embedded into relocatable mode + + .text + + lda foo + lda bar + + ; go into absolute mode + *=$1234 + +foo .asc "absolute",0 + + lda foo + lda bar + + ; go back into relocatble mode + *= + +bar .asc "reloc",0 + + +