ack/mach/6500/libem/lol.s

22 lines
296 B
ArmAsm
Raw Permalink Normal View History

1984-12-17 11:03:13 +00:00
.define Lol
1987-01-30 18:41:42 +00:00
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
1984-12-17 11:03:13 +00:00
! 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