]> git.sur5r.net Git - cc65/blob - libsrc/runtime/leasp.s
implement DEFAULT_DEVICE support
[cc65] / libsrc / runtime / leasp.s
1 ;
2 ; Ullrich von Bassewitz, 21.08.1998
3 ;
4 ; CC65 runtime: Load effective address with offset in A relative to SP
5 ;
6
7         .export         leaasp
8         .importzp       sp
9
10 .proc   leaasp
11
12         ldx     sp+1            ; Get high byte
13         clc
14         adc     sp
15         bcc     @L9
16         inx
17 @L9:    rts
18
19 .endproc
20