annotate defs/m51.defs @ 1025:a20d2fd36cfa

Releases of all OS-9 packages are now under a common version number
author boisy
date Fri, 07 Mar 2003 15:24:10 +0000
parents f7384b5a59c8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
359
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
1
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
2 * miscellaneous definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
3 HResMaxX equ 639 high resolution X limit
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
4 HResMaxY equ 191 high resolution Y limit
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
5 MousData equ $0008 arbitrary choice for mouse data area ($0008-$000E)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
6 PcktSize equ 3 number of bytes in mouse data packet
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
7 SyncData equ %01000000 initial mouse data byte pattern
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
8
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
9 * 6551 register definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
10 org 0
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
11 DataReg rmb 1 receive/transmit data
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
12 StatReg rmb 1 IRQ/DSR/DCD/error status (read only)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
13 PRstReg equ StatReg programmed reset (write only)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
14 CmdReg rmb 1 command (parity/echo/Tx IRQ/Rx IRQ/DTR)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
15 CtrlReg rmb 1 control (stop bits/word length/Rx clock/baud rate)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
16
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
17 * Status bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
18 Stat.IRQ equ %10000000 IRQ occurred
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
19 Stat.DSR equ %01000000 current DSR input level (0=enabled, 1=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
20 Stat.DCD equ %00100000 current DCD input level (0=enabled, 1=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
21 Stat.TxE equ %00010000 Tx register empty
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
22 Stat.RxF equ %00001000 Rx register full
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
23 Stat.Ovn equ %00000100 overrun error
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
24 Stat.Frm equ %00000010 framing error
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
25 Stat.Par equ %00000001 parity error
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
26
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
27 Stat.Err equ Stat.Ovn!Stat.Frm!Stat.Par status error bits
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
28 Stat.Flp equ $00 all status bits active when set
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
29 Stat.Msk equ Stat.RxF!Stat.Ovn!Stat.Frm!Stat.Par active IRQ bits
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
30
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
31 * Command bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
32 Cmd.Par equ %11100000 see parity table below
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
33 Cmd.Echo equ %00010000 Rx echo (0=disabled, 1=enabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
34 Cmd.TxIC equ %00001100 see Tx IRQ control table below
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
35 Cmd.RxIE equ %00000010 Rx IRQ enable (0=enabled, 1=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
36 Cmd.DTR equ %00000001 DTR output (0=disabled, 1=enabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
37
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
38 * parity table
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
39 Par.None equ %00000000
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
40 Par.Odd equ %00100000
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
41 Par.Even equ %01100000
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
42 Par.Mark equ %10100000
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
43 Par.Spac equ %11100000
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
44
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
45 * Tx IRQ control table
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
46 TIC.Off equ %00000000 RTS disabled, Tx IRQ disabled
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
47 TIC.On equ %00000100 RTS enabled, Tx IRQ enabled
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
48 TIC.RTS equ %00001000 RTS enabled, Tx IRQ disabled
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
49 TIC.Brk equ %00001100 RTS enabled, Tx line break
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
50
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
51 * Control bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
52 Ctl.Stop equ %10000000 stop bits (clear=1, set=2)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
53 Ctl.DBit equ %01100000 see data bit table below
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
54 Ctl.RClk equ %00010000 Rx clock source (0=external, 1=internal)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
55 Ctl.Baud equ %00001111 see baud rate table below
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
56
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
57 * data bit table
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
58 DB.5 equ %01100000 five data bits per character
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
59 DB.6 equ %01000000 six data bits per character
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
60 DB.7 equ %00100000 seven data bits per character
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
61 DB.8 equ %00000000 eight data bits per character
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
62
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
63 * baud rate table
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
64 org 0
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
65 BR.ExClk rmb 1 16x external clock
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
66 BR.00050 rmb 1 50 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
67 BR.00075 rmb 1 75 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
68 BR.00110 rmb 1 109.92 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
69 BR.00135 rmb 1 134.58 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
70 BR.00150 rmb 1 150 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
71 BR.00300 rmb 1 300 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
72 BR.00600 rmb 1 600 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
73 BR.01200 rmb 1 1200 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
74 BR.01800 rmb 1 1800 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
75 BR.02400 rmb 1 2400 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
76 BR.03600 rmb 1 3600 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
77 BR.04800 rmb 1 4800 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
78 BR.07200 rmb 1 7200 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
79 BR.09600 rmb 1 9600 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
80 BR.19200 rmb 1 19200 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
81
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
82 * Buffer (0,u only) bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
83 B.Butn1 equ %00100000 button #1 (left, 1 = pressed)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
84 B.Butn2 equ %00010000 button #2 (right, 1 = pressed)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
85
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
86 B.Butns equ B.Butn1!B.Butn2 mask for all buttons
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
87
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
88
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
89 * mouse static data area definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
90 org 0
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
91 Buffer rmb 2 Rx buffer for mouse data (must start at 0,u)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
92 Counter rmb 1 Rx data counter
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
93 CrntXPos rmb 2 mouse X position (0 to HResMaxX)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
94 CrntYPos rmb 2 mouse Y position (0 to HResMaxY*2)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
95