1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00
cc65/libsrc/runtime/pushlysp.s

32 lines
473 B
ArmAsm

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