]> cloudbase.mooo.com Git - z180-stamp-cpm3.git/blobdiff - cbios/ioctl.inc
Add TCGETA, TCSETA
[z180-stamp-cpm3.git] / cbios / ioctl.inc
index d3a7b7b7b814cef6529f98860f5210f5927ee011..8d1f303b9db477770013caa9c87538a9227f1452 100644 (file)
@@ -26,7 +26,7 @@ TIOCGSOFTCAR  equ     11h             ;Get the status of the CLOCAL flag in the c_cflag field
 TIOCSSOFTCAR   equ     12h             ;Set the CLOCAL flag when  *argp  is nonzero, and clear it otherwise.\r
 \r
 \r
-; iflag bits (0)\r
+; iflags bits (0)\r
        b2m     IGNBRK, 0               ;Ignore BREAK condition on input.\r
        b2m     BRKINT, 1\r
        b2m     INPCK,  2               ;Enable input parity checking.\r
@@ -34,7 +34,7 @@ TIOCSSOFTCAR  equ     12h             ;Set the CLOCAL flag when  *argp  is nonzero, and clear it
        b2m     PARMRK, 4               ;Prefix a character with a parity error or framing error with  FFH  00H.\r
        b2m     ISTRIP, 5               ;Strip off eighth bit.\r
        b2m     PARODD, 6               ;If set, then parity for input and output is odd.\r
-; fflag bits (1)\r
+; fflags bits (1)\r
        b2m     IXON,   0               ;Enable XON/XOFF flow control on output.\r
        b2m     IXANY,  1               ;Typing any character will restart stopped output.\r
        b2m     IXOFF,  2               ;Enable XON/XOFF flow control on input.\r
@@ -44,7 +44,7 @@ TIOCSSOFTCAR  equ     12h             ;Set the CLOCAL flag when  *argp  is nonzero, and clear it
        b2m     CREAD,  6               ;Enable receiver.\r
 \r
 \r
-;      control mode flags (2)\r
+; cflags (2)\r
 M_CBAUD                equ     01Fh            ;Baud speed mask\r
  B0            equ     000h            ;hang up\r
  B50           equ     011h\r
@@ -70,8 +70,9 @@ M_CBAUD               equ     01Fh            ;Baud speed mask
  B192000       equ     016h\r
  B288000       equ     017h\r
 M_CSIZE                equ     020h            ;Character size mask.\r
- CS7           equ     000h            ;\r
- CS8           equ     020h            ;\r
+ M_CS7         equ     000h            ;\r
+ M_CS8         equ     020h            ;\r
+ CS8           equ     5               ;\r
        b2m     CSTOPB, 6               ;Set two stop bits, rather than one.\r
        b2m     PARENB, 7               ;Enable parity generation on output and parity checking for input.\r
 \r