1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-05 06:28:57 +00:00
cc65/libsrc/runtime/ldau0sp.s

22 lines
315 B
ArmAsm
Raw Normal View History

;
; Ullrich von Bassewitz, 11.04.1999
;
; CC65 runtime: Load an unsigned char indirect from pointer somewhere in stack
;
.export ldau00sp, ldau0ysp
.importzp sp, ptr1
ldau00sp:
ldy #1
ldau0ysp:
lda (sp),y
sta ptr1+1
dey
lda (sp),y
sta ptr1
ldx #0
lda (ptr1,x)
rts