From: Neal Andrew Crook Date: Tue, 2 Aug 2016 20:51:18 +0000 (+0100) Subject: remove dead code and bad comments. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=afd77aea4b73475999946daa291cdbf50f0c423f;p=FUZIX.git remove dead code and bad comments. --- diff --git a/Kernel/platform-multicomp09/devtty.c b/Kernel/platform-multicomp09/devtty.c index 247c4a05..2ce83712 100644 --- a/Kernel/platform-multicomp09/devtty.c +++ b/Kernel/platform-multicomp09/devtty.c @@ -4,11 +4,9 @@ #include #include #include -#include #include #include #include -#include #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; diff --git a/Kernel/platform-multicomp09/dwread.s b/Kernel/platform-multicomp09/dwread.s index 77d39aa6..457184e0 100644 --- a/Kernel/platform-multicomp09/dwread.s +++ b/Kernel/platform-multicomp09/dwread.s @@ -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