Split of the lruntime module
git-svn-id: svn://svn.cc65.org/cc65/trunk@427 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
37
libsrc/runtime/steaxspp.s
Normal file
37
libsrc/runtime/steaxspp.s
Normal file
@@ -0,0 +1,37 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 22.06.1998
|
||||
;
|
||||
; CC65 runtime: Store eax at the address on top of stack.
|
||||
;
|
||||
|
||||
|
||||
.export steaxspp
|
||||
.import popax
|
||||
.importzp sreg, ptr1
|
||||
|
||||
.proc steaxspp
|
||||
|
||||
pha
|
||||
txa
|
||||
pha
|
||||
jsr popax ; get address
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
ldy #3
|
||||
lda sreg+1
|
||||
sta (ptr1),y
|
||||
dey
|
||||
lda sreg
|
||||
sta (ptr1),y
|
||||
dey
|
||||
pla
|
||||
tax
|
||||
sta (ptr1),y
|
||||
dey
|
||||
pla
|
||||
sta (ptr1),y
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user