From: Stephan Mühlstrasser Date: Sun, 16 Nov 2014 20:13:18 +0000 (+0100) Subject: Direct use of monitor function instead of subroutine call. X-Git-Tag: V2.15~22^2~52 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14958949c27d38dc69e5e228298d9ad5d9f906e3;p=cc65 Direct use of monitor function instead of subroutine call. --- diff --git a/libsrc/c1p/c1p.inc b/libsrc/c1p/c1p.inc index 525a8e9ee..60ea6eaaa 100644 --- a/libsrc/c1p/c1p.inc +++ b/libsrc/c1p/c1p.inc @@ -1,3 +1,8 @@ -SCRNBASE := $D000 ; Base of video RAM -VIDEORAMSIZE := $0400 ; Size of C1P video RAM (1 kB) +SCRNBASE := $D000 ; Base of video RAM +VIDEORAMSIZE := $0400 ; Size of C1P video RAM (1 kB) + +CURSORPOS := $0200 ; Cursor position for OUTPUTC routine + +OUTPUTC := $BF2D ; Output character at cursor position +INPUTC := $FD00 ; Input character from keyboard diff --git a/libsrc/c1p/cgetc.s b/libsrc/c1p/cgetc.s index 483c2f2c1..a73866a56 100644 --- a/libsrc/c1p/cgetc.s +++ b/libsrc/c1p/cgetc.s @@ -1,11 +1,8 @@ ; ; char cgetc (void); ; - .export _cgetc .include "c1p.inc" -; Use INPUT routine from 65V PROM MONITOR -_cgetc: - jsr $FEED - rts +; Direct use of input routine from 65V PROM MONITOR +_cgetc = INPUTC