X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fatari%2Fcgetc.s;h=54fe85bb47d0580aa5e4728ecda60bd1598ba683;hb=34e75afec3091c211e132d7b49d92d4cdcc84d06;hp=43969c2aad0172e04ea12d719887f7ce14642a2e;hpb=7a45a7b2eb752edafc23ea0bbe5155d6381a5aed;p=cc65 diff --git a/libsrc/atari/cgetc.s b/libsrc/atari/cgetc.s index 43969c2aa..54fe85bb4 100644 --- a/libsrc/atari/cgetc.s +++ b/libsrc/atari/cgetc.s @@ -7,27 +7,27 @@ .include "atari.inc" .export _cgetc,setcursor - .import KEYBDV_wrapper + .import KEYBDV_handler .import cursor,mul40 _cgetc: jsr setcursor lda #12 sta ICAX1Z ; fix problems with direct call to KEYBDV -.if .not .defined(__ATARIXL__) +.ifndef __ATARIXL__ jsr @1 .else - jsr KEYBDV_wrapper + jsr KEYBDV_handler .endif ldx #0 rts -.if .not .defined(__ATARIXL__) -@1: lda KEYBDV+5 +.ifndef __ATARIXL__ +@1: lda KEYBDV+5 pha lda KEYBDV+4 pha - rts + rts .endif .proc setcursor