SLAU131V October 2004 – February 2020
* Define a section to be copied from load to run address
.sect ".fir"
.label fir_src
fir:
* < code here> ;code for section
.label fir_end
* Copy .fir section from load address to run address
.text
MOV &fir_s,R11
MOV &fir_e,R12
MOV #fir,R13
LOOP: CMP R11,R12
JL Copy_Done
MOV @R11+,0(R13)
INC R13
JMP LOOP
Copy_Done:
* Jump to fir routine, now at run address
JMP fir
fir_s .word fir_src
fir_e .word fir_end