2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 21.08.1998
|
|
|
|
;
|
2000-10-31 18:57:00 +00:00
|
|
|
; CC65 runtime: Load effective address with offset in A relative to SP
|
2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
|
2000-10-31 18:57:00 +00:00
|
|
|
.export leaasp
|
2000-06-10 16:13:50 +00:00
|
|
|
.importzp sp
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2000-10-31 18:57:00 +00:00
|
|
|
.proc leaasp
|
|
|
|
|
|
|
|
ldx sp+1 ; Get high byte
|
2000-06-10 16:13:50 +00:00
|
|
|
clc
|
|
|
|
adc sp
|
2000-10-31 18:57:00 +00:00
|
|
|
bcc @L9
|
2000-06-10 16:13:50 +00:00
|
|
|
inx
|
2000-10-31 18:57:00 +00:00
|
|
|
@L9: rts
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2000-10-31 18:57:00 +00:00
|
|
|
.endproc
|
2000-05-28 13:40:48 +00:00
|
|
|
|