Direct use of monitor function instead of subroutine call.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
SCRNBASE := $D000 ; Base of video RAM
|
SCRNBASE := $D000 ; Base of video RAM
|
||||||
VIDEORAMSIZE := $0400 ; Size of C1P video RAM (1 kB)
|
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
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
;
|
;
|
||||||
; char cgetc (void);
|
; char cgetc (void);
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _cgetc
|
.export _cgetc
|
||||||
.include "c1p.inc"
|
.include "c1p.inc"
|
||||||
|
|
||||||
; Use INPUT routine from 65V PROM MONITOR
|
; Direct use of input routine from 65V PROM MONITOR
|
||||||
_cgetc:
|
_cgetc = INPUTC
|
||||||
jsr $FEED
|
|
||||||
rts
|
|
||||||
|
|||||||
Reference in New Issue
Block a user