mirror of
https://github.com/cc65/cc65.git
synced 2024-10-31 04:04:49 +00:00
26 lines
244 B
ArmAsm
26 lines
244 B
ArmAsm
|
;
|
||
|
; Ullrich von Bassewitz, 29.12.1999
|
||
|
;
|
||
|
; CC65 runtime: long pop
|
||
|
;
|
||
|
|
||
|
.export popeax
|
||
|
.import incsp4
|
||
|
.importzp sp, sreg
|
||
|
|
||
|
|
||
|
popeax: ldy #3
|
||
|
lda (sp),y
|
||
|
sta sreg+1
|
||
|
dey
|
||
|
lda (sp),y
|
||
|
sta sreg
|
||
|
dey
|
||
|
lda (sp),y
|
||
|
tax
|
||
|
dey
|
||
|
lda (sp),y
|
||
|
jmp incsp4
|
||
|
|
||
|
|