2000-11-01 22:03:22 +00:00
|
|
|
;
|
|
|
|
; 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
|
2013-05-09 11:56:54 +00:00
|
|
|
; this function!
|
2000-11-01 22:03:22 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export ldeax0sp, ldeaxysp
|
|
|
|
.importzp sreg, sp
|
2000-11-01 22:03:22 +00:00
|
|
|
|
|
|
|
ldeax0sp:
|
2013-05-09 11:56:54 +00:00
|
|
|
ldy #3
|
2000-11-01 22:03:22 +00:00
|
|
|
ldeaxysp:
|
2013-05-09 11:56:54 +00:00
|
|
|
lda (sp),y
|
|
|
|
sta sreg+1
|
|
|
|
dey
|
|
|
|
lda (sp),y
|
|
|
|
sta sreg
|
|
|
|
dey
|
|
|
|
lda (sp),y
|
|
|
|
tax
|
|
|
|
dey
|
|
|
|
lda (sp),y
|
|
|
|
rts
|
2000-11-01 22:03:22 +00:00
|
|
|
|