Add defines for all 3 UARTs.
authorNeal Andrew Crook <neal@pippaluk.org.uk>
Thu, 28 Jul 2016 19:43:59 +0000 (20:43 +0100)
committerNeal Andrew Crook <neal@pippaluk.org.uk>
Thu, 28 Jul 2016 19:43:59 +0000 (20:43 +0100)
Kernel/platform-multicomp09/multicomp09.s
Kernel/platform-multicomp09/platform.def

index bf1c773..d4b4433 100644 (file)
@@ -481,9 +481,9 @@ map_for_swap
 ;;;   returns: nothing
 outchar:
        pshs    b,cc
-vdubiz  ldb     UARTSTA
+vdubiz  ldb     UARTSTA0
         bitb    #2
-        beq     vdubiz ; busy
+        beq     vdubiz  ; busy
 
-       sta     UARTDAT ; ready, send character
+       sta     UARTDAT0 ; ready, send character
        puls    b,cc,pc
index a9ac230..827944b 100644 (file)
@@ -41,6 +41,14 @@ SDLBA1         equ $FFDB     ; not used here
 SDLBA2        equ $FFDC        ; not used here
 
 
-;;; vdu/virtual UART registers
-UARTDAT                equ $ffd1
-UARTSTA                equ $ffd0
+;;; Port0, tty1: vdu/virtual UART registers - default boot console
+UARTDAT0       equ $ffd1
+UARTSTA0       equ $ffd0
+
+;;; Port1, tty2: UART registers - additional console
+UARTDAT1       equ $ffd1
+UARTSTA1       equ $ffd0
+
+;;; Port2, tty3: UART registers - drivewire link to server
+UARTDAT2       equ $ffd1
+UARTSTA2       equ $ffd0