2000-10-25 19:53:22 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 25.10.2000
|
|
|
|
;
|
|
|
|
; CC65 runtime: Decrement the stackpointer by 1
|
|
|
|
;
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.export decsp1
|
|
|
|
.importzp sp
|
2000-10-25 19:53:22 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.proc decsp1
|
2000-10-25 19:53:22 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
ldy sp
|
|
|
|
bne @L1
|
|
|
|
dec sp+1
|
|
|
|
@L1: dec sp
|
|
|
|
rts
|
2000-10-25 19:53:22 +00:00
|
|
|
|
|
|
|
.endproc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
|