]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - z180/modebaud.inc
CP/M 3 compatible character i/o handling
[z180-stamp.git] / z180 / modebaud.inc
diff --git a/z180/modebaud.inc b/z180/modebaud.inc
new file mode 100644 (file)
index 0000000..2e60e44
--- /dev/null
@@ -0,0 +1,31 @@
+       ; equates for mode byte bit fields\r
+\r
+mb$input               equ 00000001b   ; device may do input\r
+mb$output              equ 00000010b   ; device may do output\r
+mb$in$out              equ mb$input+mb$output\r
+\r
+mb$soft$baud           equ 00000100b   ; software selectable\r
+                                       ; baud rates\r
+\r
+mb$serial              equ 00001000b   ; device may use protocol\r
+mb$xon$xoff            equ 00010000b   ; XON/XOFF protocol\r
+                                       ; enabled\r
+\r
+baud$none              equ 0           ; no baud rate associated\r
+                                       ; with this device\r
+baud$50                        equ 1           ; 50 baud\r
+baud$75                        equ 2           ; 75 baud\r
+baud$110               equ 3           ; 110 baud\r
+baud$134               equ 4           ; 134.5 baud\r
+baud$150               equ 5           ; 150 baud\r
+baud$300               equ 6           ; 300 baud\r
+baud$600               equ 7           ; 600 baud\r
+baud$1200              equ 8           ; 1200 baud\r
+baud$1800              equ 9           ; 1800 baud\r
+baud$2400              equ 10          ; 2400 baud\r
+baud$3600              equ 11          ; 3600 baud\r
+baud$4800              equ 12          ; 4800 baud\r
+baud$7200              equ 13          ; 7200 baud\r
+baud$9600              equ 14          ; 9600 baud\r
+baud$19200             equ 15          ; 19.2k baud\r
+\r