2000-11-01 22:03:22 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 22.06.1998
|
|
|
|
;
|
|
|
|
; CC65 runtime: Push a long from somewhere in the stack
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.export pushlysp
|
|
|
|
.import pusheax
|
|
|
|
.importzp sreg, sp
|
2000-11-01 22:03:22 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.proc pushlysp
|
2000-11-01 22:03:22 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
iny
|
|
|
|
iny
|
|
|
|
lda (sp),y
|
|
|
|
iny
|
|
|
|
sta sreg
|
|
|
|
lda (sp),y
|
|
|
|
sta sreg+1
|
|
|
|
dey
|
|
|
|
dey
|
|
|
|
lda (sp),y
|
|
|
|
dey
|
|
|
|
tax
|
|
|
|
lda (sp),y
|
|
|
|
jmp pusheax
|
2000-11-01 22:03:22 +00:00
|
|
|
|
|
|
|
.endproc
|
|
|
|
|
|
|
|
|