2000-10-25 19:53:22 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 25.10.2000
|
|
|
|
;
|
|
|
|
; CC65 runtime: Decrement the stackpointer by 4
|
|
|
|
;
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.export decsp4
|
|
|
|
.importzp sp
|
2000-10-25 19:53:22 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.proc decsp4
|
2000-10-25 19:53:22 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
lda sp
|
|
|
|
sec
|
|
|
|
sbc #4
|
|
|
|
sta sp
|
|
|
|
bcc @L1
|
|
|
|
rts
|
2001-03-24 16:15:01 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
@L1: dec sp+1
|
|
|
|
rts
|
2000-10-25 19:53:22 +00:00
|
|
|
|
|
|
|
.endproc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-03-24 16:15:01 +00:00
|
|
|
|