mirror of
https://github.com/cc65/cc65.git
synced 2024-11-13 13:11:06 +00:00
7bb82698d1
git-svn-id: svn://svn.cc65.org/cc65/trunk@427 b7a2c559-68d2-44c3-8de9-860c34a00d81
29 lines
383 B
ArmAsm
29 lines
383 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 22.06.1998
|
|
;
|
|
; CC65 runtime: Load a long from somewhere in the stack
|
|
;
|
|
; Beware: The optimizer knows about the register contents after calling
|
|
; this function!
|
|
;
|
|
|
|
|
|
.export ldeax0sp, ldeaxysp
|
|
.importzp sreg, sp
|
|
|
|
ldeax0sp:
|
|
ldy #3
|
|
ldeaxysp:
|
|
lda (sp),y
|
|
sta sreg+1
|
|
dey
|
|
lda (sp),y
|
|
sta sreg
|
|
dey
|
|
lda (sp),y
|
|
tax
|
|
dey
|
|
lda (sp),y
|
|
rts
|
|
|