1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +00:00
cc65/libsrc/runtime/lpop.s

32 lines
552 B
ArmAsm
Raw Permalink Normal View History

;
; Ullrich von Bassewitz, 29.12.1999
2017-03-12 22:21:43 +00:00
; Christian Krueger, 11-Mar-2017, added 65SC02 optimization
;
; CC65 runtime: long pop
;
.export popeax
.import incsp4
.importzp sp, sreg
2017-03-12 22:21:43 +00:00
.macpack cpu
popeax: ldy #3
lda (sp),y
sta sreg+1
dey
lda (sp),y
sta sreg
dey
lda (sp),y
tax
2017-03-12 22:21:43 +00:00
.if (.cpu .bitand ::CPU_ISET_65SC02)
lda (sp)
2022-04-17 14:06:22 +00:00
.else
dey
lda (sp),y
2017-03-12 22:21:43 +00:00
.endif
jmp incsp4