Squeeze Monitor into top 1K, use common function names for UART for compatibility

This commit is contained in:
Ben Chong
2017-05-31 17:41:06 -07:00
parent e95d31e3b3
commit 21bbbe8199
4 changed files with 34 additions and 125 deletions

View File

@@ -21,10 +21,12 @@ uart_status = $c041
;
;***********************************************************************
; UART I/O Support Routines
; We'll use Daryl's routine names for compatibility with his software/code
; Otherwise, we'll use UART-agnostic nomemclature
;---------------------------------------------------------------------
;
ACIA1_init
uart_init
; Nothing to init
ldx #4
@@ -40,6 +42,7 @@ ui_loop
;---------------------------------------------------------------------
; Input char from UART (blocking)
; Exit: character in A
ACIA1_Input
uart_input
lda uart_status ; Serial port status
and #$01 ; is recvr full
@@ -50,6 +53,7 @@ uart_input
;---------------------------------------------------------------------
; Non-waiting get character routine
; Scan for input (no wait), C=1 char, C=0 no character
ACIA1_Scan
uart_scan
clc
lda uart_status ; Serial port status
@@ -63,6 +67,7 @@ uart_scan2 rts
; output to OutPut Port
; Entry: character in A
; Exit: character in A
ACIA1_Output
uart_output
pha ; save registers
uart_out1