remove dead code and bad comments.
authorNeal Andrew Crook <neal@pippaluk.org.uk>
Tue, 2 Aug 2016 20:51:18 +0000 (21:51 +0100)
committerNeal Andrew Crook <neal@pippaluk.org.uk>
Tue, 2 Aug 2016 20:51:18 +0000 (21:51 +0100)
Kernel/platform-multicomp09/devtty.c
Kernel/platform-multicomp09/dwread.s

index 247c4a0..2ce8371 100644 (file)
@@ -4,11 +4,9 @@
 #include <stdbool.h>
 #include <devtty.h>
 #include <device.h>
-#include <vt.h>
 #include <tty.h>
 #include <devdw.h>
 #include <ttydw.h>
-#include <graphics.h>
 
 #undef  DEBUG                  /* UNdefine to delete debug code sequences */
 #undef  MC09_VIRTUAL_IN
@@ -48,14 +46,6 @@ static int ccount = 0;
 #endif
 
 
-#define VSECT __attribute__((section(".video")))
-#define VSECTD __attribute__((section(".videodata")))
-
-
-
-uint8_t vtattr_cap;
-
-
 uint8_t tbuf1[TTYSIZ];   /* virtual serial port 0: console */
 uint8_t tbuf2[TTYSIZ];   /*         serial port 1: UART */
 uint8_t tbuf3[TTYSIZ];   /* drivewire VSER 0 */
@@ -119,7 +109,6 @@ void kputchar(char c)
 
 ttyready_t tty_writeready(uint8_t minor)
 {
-       // [NAC HACK 2016Jul27] do I need to wait for the DW uart? Maybe I do..
        uint8_t c;
         if ((minor < 1) || (minor > 2)) {
                return TTY_READY_NOW;
index 77d39aa..457184e 100644 (file)
@@ -79,5 +79,5 @@ rxExit          leas      1,s                 ; remove timeout MSB from stack
           leay      ,x                  ; return checksum in Y
           puls      cc,x,u,pc          ; restore registers and return
 
-rxTimout  clra                         ; represents CC.C=0
+rxTimout  clra                         ; represents CC.C=0, CC.Z=0
          bra       rxExit