1
0
mirror of https://github.com/cc65/cc65.git synced 2026-01-26 13:16:42 +00:00
Files
cc65/libsrc/runtime/pushlysp.s
2025-06-04 06:37:59 +00:00

32 lines
483 B
ArmAsm

;
; Ullrich von Bassewitz, 22.06.1998
;
; CC65 runtime: Push a long from somewhere in the stack
;
.export pushlysp
.import pusheax
.importzp sreg, c_sp
.proc pushlysp
iny
iny
lda (c_sp),y
iny
sta sreg
lda (c_sp),y
sta sreg+1
dey
dey
lda (c_sp),y
dey
tax
lda (c_sp),y
jmp pusheax
.endproc