From 14958949c27d38dc69e5e228298d9ad5d9f906e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BChlstrasser?= Date: Sun, 16 Nov 2014 21:13:18 +0100 Subject: [PATCH] Direct use of monitor function instead of subroutine call. --- libsrc/c1p/c1p.inc | 9 +++++++-- libsrc/c1p/cgetc.s | 7 ++----- 2 files changed, 9 insertions(+), 7 deletions(-) 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 -- 2.39.5