]> git.sur5r.net Git - cc65/blob - libsrc/plus4/kchkin.s
fixed optimization bug where array index is 16-bit, e.g. arr16[i & 0x7f7f]
[cc65] / libsrc / plus4 / kchkin.s
1 ;
2 ; Ullrich von Bassewitz, 22.11.2002
3 ;
4 ; CHKIN replacement function
5 ;
6
7         .export         CHKIN
8
9         .include        "plus4.inc"
10
11 .segment        "LOWCODE"               ; Must go into low memory
12
13 .proc   CHKIN
14         sta     ENABLE_ROM              ; Enable the ROM
15         jsr     $FFC6                   ; Call the ROM routine
16         sta     ENABLE_RAM              ; Switch back to RAM
17         rts                             ; Return to caller
18 .endproc
19
20