]> git.sur5r.net Git - cc65/blob - libsrc/runtime/leaaxsp.s
Renamed leaasp.s again, this time to leaa0sp.s. Added a new module leaaxsp.s.
[cc65] / libsrc / runtime / leaaxsp.s
1 ;
2 ; Ullrich von Bassewitz, 2009-08-31
3 ;
4 ; CC65 runtime: Load effective address with offset in A/X relative to SP
5 ;
6
7         .export         leaaxsp
8         .importzp       sp
9
10 .proc   leaaxsp
11              
12         clc
13         adc     sp
14         pha
15         txa
16         adc     sp+1
17         tax
18         pla
19         rts
20
21 .endproc
22
23