ack/mach/6500/libem/loi1.s

16 lines
254 B
ArmAsm
Raw Normal View History

1984-12-17 11:03:13 +00:00
.define Loi1
! This routine loads a one byte object in registerpair AX.
Loi1:
stx ADDR ! address of byte (lowbyte)
sta ADDR+1 ! address of byte (highbyte)
ldy #0
lda (ADDR),y ! load byte
tax ! store byte in X
tya ! clear highbyte of AX
rts