mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
32 lines
560 B
ArmAsm
32 lines
560 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 29.12.1999
|
|
; Christian Krueger, 11-Mar-2017, added 65SC02 optimization
|
|
;
|
|
; CC65 runtime: long pop
|
|
;
|
|
|
|
.export popeax
|
|
.import incsp4
|
|
.importzp sp, sreg
|
|
|
|
.macpack cpu
|
|
|
|
popeax: ldy #3
|
|
lda (sp),y
|
|
sta sreg+1
|
|
dey
|
|
lda (sp),y
|
|
sta sreg
|
|
dey
|
|
lda (sp),y
|
|
tax
|
|
.if (.cpu .bitand ::CPU_ISET_65SC02)
|
|
lda (sp)
|
|
.else
|
|
dey
|
|
lda (sp),y
|
|
.endif
|
|
jmp incsp4
|
|
|
|
|