2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 31.08.1998
|
|
|
|
;
|
|
|
|
; CC65 runtime: Store eax at (sp),y
|
|
|
|
;
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.export steaxysp, steax0sp
|
|
|
|
.importzp sp, sreg
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
steax0sp:
|
2013-05-09 13:56:54 +02:00
|
|
|
ldy #0
|
2000-05-28 13:40:48 +00:00
|
|
|
steaxysp:
|
2013-05-09 13:56:54 +02:00
|
|
|
sta (sp),y
|
|
|
|
iny
|
|
|
|
pha
|
|
|
|
txa
|
|
|
|
sta (sp),y
|
|
|
|
iny
|
|
|
|
lda sreg
|
|
|
|
sta (sp),y
|
|
|
|
iny
|
|
|
|
lda sreg+1
|
|
|
|
sta (sp),y
|
|
|
|
pla
|
|
|
|
rts
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|