1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 19:29:45 +00:00

Direct use of monitor function instead of subroutine call.

This commit is contained in:
Stephan Mühlstrasser 2014-11-16 21:13:18 +01:00
parent 6edf57324e
commit 14958949c2
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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