mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +00:00
c2f5cb7cce
git-svn-id: svn://svn.cc65.org/cc65/trunk@2043 b7a2c559-68d2-44c3-8de9-860c34a00d81
28 lines
349 B
ArmAsm
28 lines
349 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 25.10.2000
|
|
;
|
|
; CC65 runtime: Pop a from stack
|
|
;
|
|
|
|
.export popa
|
|
.importzp sp
|
|
|
|
.proc popa
|
|
|
|
.ifpc02
|
|
lda (sp)
|
|
.else
|
|
ldy #0 ; (2)
|
|
lda (sp),y ; (7) Read byte
|
|
.endif
|
|
inc sp ; (12)
|
|
beq @L1 ; (14)
|
|
rts ; (20)
|
|
|
|
@L1: inc sp+1
|
|
rts
|
|
|
|
.endproc
|
|
|
|
|