mirror of
https://github.com/fadden/6502bench.git
synced 2024-08-20 11:28:58 +00:00
This test exercises the relocation data feature. The test file is generated from a multi-segment OMF file that was hex-edited to have specific attributes (see 20212-reloc-data-lnk.S for instructions). The test also serves as a way to exercise the OMF converter. Also, implement the Bank Relative flag.
31 lines
616 B
ArmAsm
31 lines
616 B
ArmAsm
; Copyright 2020 faddenSoft. All Rights Reserved.
|
|
; See the LICENSE.txt file for distribution terms (Apache 2.0).
|
|
;
|
|
; Assembler: Merlin 32
|
|
;
|
|
; Segment #4 : code, loads somewhere in bank 8
|
|
|
|
REL ;generate relocatable code
|
|
|
|
BANK2_START EXT
|
|
|
|
BANK8_START ENT
|
|
start ldal start
|
|
lda addr
|
|
nop
|
|
ldal $010000
|
|
ldal $020000
|
|
ldal $030000
|
|
ldal $080000
|
|
rtl
|
|
|
|
BANK8_ADDR ENT
|
|
addr
|
|
adrl addr
|
|
adrl BANK2_START
|
|
dfb $80
|
|
adrl $081000
|
|
|
|
BANK8_MOV_SRC ENT
|
|
asc 'This is a test.',$00
|