ack/mach/6500/libem/lol.s
1987-01-30 18:41:42 +00:00

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