mirror of
https://github.com/fachat/xa65.git
synced 2025-01-13 14:29:52 +00:00
add test for absolute embedded into reloc
This commit is contained in:
parent
602cc72d96
commit
3a021c8a2e
@ -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
BIN
xa/tests/reset_segment/ok2
Normal file
Binary file not shown.
23
xa/tests/reset_segment/test2.s
Normal file
23
xa/tests/reset_segment/test2.s
Normal 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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user