ack/mach/6500/libem/loi1.s

21 lines
312 B
ArmAsm
Raw Permalink Normal View History

1984-12-17 11:03:13 +00:00
.define Loi1
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 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