]> git.sur5r.net Git - cc65/blob - libsrc/plus4/kload.s
lseek: Return EINVAL if new position is less than 0 or greater than 2^24 - 1.
[cc65] / libsrc / plus4 / kload.s
1 ;
2 ; Ullrich von Bassewitz, 22.11.2002
3 ;
4 ; LOAD replacement function
5 ;
6
7         .export         LOAD
8
9         .include        "plus4.inc"
10
11 .segment        "LOWCODE"               ; Must go into low memory
12
13 .proc   LOAD
14         sta     ENABLE_ROM              ; Enable the ROM
15         jsr     $FFD5                   ; Call the ROM routine
16         sta     ENABLE_RAM              ; Switch back to RAM
17         rts                             ; Return to caller
18 .endproc
19
20