; ; Christian Groessler, November-2002 ; ; get a char from the keyboard ; char cgetc(void) ; ; Modified version for FujiNetChat. .include "atari.inc" .export _cgetc _cgetc: ;;; jsr setcursor ; this is unneeded and causes a hole in screen 7 lda #12 sta ICAX1Z ; fix problems with direct call to KEYBDV jsr @1 ldx #0 rts @1: lda KEYBDV+5 pha lda KEYBDV+4 pha rts