1
0
mirror of https://github.com/cc65/cc65.git synced 2026-03-10 17:21:49 +00:00
Files
cc65/libsrc/runtime/steaxsp.s
2025-06-04 06:37:59 +00:00

28 lines
429 B
ArmAsm

;
; Ullrich von Bassewitz, 31.08.1998
;
; CC65 runtime: Store eax at (c_sp),y
;
.export steaxysp, steax0sp
.importzp c_sp, sreg
steax0sp:
ldy #0
steaxysp:
sta (c_sp),y
iny
pha
txa
sta (c_sp),y
iny
lda sreg
sta (c_sp),y
iny
lda sreg+1
sta (c_sp),y
pla
rts