1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-31 20:06:11 +00:00
cc65/libsrc/runtime/popa.s
cuz d09bf73a96 65C02 code, minor optimization.
git-svn-id: svn://svn.cc65.org/cc65/trunk@486 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-11-28 13:27:42 +00:00

28 lines
260 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
lda (sp),y ; Read byte
.endif
inc sp
beq @L1
rts
@L1: inc sp+1
rts
.endproc