]> git.sur5r.net Git - cc65/blob - libsrc/runtime/ldai.s
lseek: Return EINVAL if new position is less than 0 or greater than 2^24 - 1.
[cc65] / libsrc / runtime / ldai.s
1 ;
2 ; Ullrich von Bassewitz, 31.08.1998
3 ;
4 ; CC65 runtime: Load a indirect from address in ax
5 ;
6
7         .export         ldaidx
8         .importzp       ptr1
9
10 .proc   ldaidx
11         sta     ptr1
12         stx     ptr1+1
13         ldx     #$00
14         lda     (ptr1),y
15         bpl     @L1
16         dex
17 @L1:    rts
18 .endproc
19