mirror of
https://github.com/cc65/cc65.git
synced 2024-08-29 09:29:19 +00:00
22 lines
210 B
ArmAsm
22 lines
210 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 25.10.2000
|
|
;
|
|
; CC65 runtime: Pop a from stack
|
|
;
|
|
|
|
.export popa
|
|
.importzp sp
|
|
|
|
.proc popa
|
|
|
|
ldy #0
|
|
lda (sp),y ; Read byte
|
|
inc sp
|
|
bne @L1
|
|
inc sp+1
|
|
@L1: rts
|
|
|
|
.endproc
|
|
|
|
|