22 lines
296 B
ArmAsm
22 lines
296 B
ArmAsm
.define Lol
|
|
.sect .text
|
|
.sect .rom
|
|
.sect .data
|
|
.sect .bss
|
|
.sect .text
|
|
|
|
! This subroutine loads a local in registerpair AX which
|
|
! offset from the localbase is to big.
|
|
|
|
|
|
Lol:
|
|
jsr Locaddr ! get the address of local
|
|
ldy #0
|
|
lda (ADDR),y ! get lowbyte
|
|
tax
|
|
iny
|
|
lda (ADDR),y ! get highbyte
|
|
rts
|
|
|
|
|