add test for absolute embedded into reloc

This commit is contained in:
Andre Fachat 2019-10-31 22:42:13 +01:00
parent 602cc72d96
commit 3a021c8a2e
4 changed files with 26 additions and 1 deletions

View File

@ -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

BIN
xa/tests/reset_segment/ok2 Normal file

Binary file not shown.

View File

@ -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