annotate defs/m52.defs @ 2898:28ed72477814 lwtools-port

Dummy merge of default branch into lwtools hg -y merge --tool=internal:fail default hg revert --all --no-backup --rev . hg resolve -a -m This dummy merge discards any changes from the default branch so that the result is the same as what lwtools already had. When merging back to default branch later, the discarded changes will be discarded there also, so the result will be that the default branch will contain what the lwtools branch had before these merges. Only scripts/burst was "rescued" from default branch.
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 11 Jan 2014 18:40:44 +0100
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 * 65C52 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 ISReg rmb 1 IRQ Status (read only)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
12 IEReg equ ISReg IRQ Enable (write only)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
13 CSReg rmb 1 Control Status (read only)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
14 CFReg equ CSReg Control/Format (write only)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
15 CDReg rmb 1 Compare Data (write only, unused in this driver)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
16 TBReg equ CDReg Transmit Break (write only)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
17 DataReg rmb 1 receive/transmit Data (read Rx / write Tx)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
18
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
19 * IRQ Status/Enable bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
20 ISE.IRQ equ %10000000 IRQ occurred/enable
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
21 ISE.TxE equ %01000000 Tx data register Empty
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
22 ISE.CTS equ %00100000 CTS transition
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
23 ISE.DCD equ %00010000 DCD transition
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
24 ISE.DSR equ %00001000 DSR transition
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
25 ISE.FOB equ %00000100 receive data Framing or Overrun error, or Break
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
26 ISE.Par equ %00000010 Parity error in Rx data
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
27 ISE.RxF equ %00000001 Rx data register Full
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
28
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
29 ISE.Errs equ ISE.FOB!ISE.Par IRQ Status error bits
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
30 ISE.Flip equ $00 all ISR bits active when set
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
31 ISE.Mask equ ISE.FOB!ISE.Par!ISE.RxF active IRQs
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
32
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
33 * Control Status bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
34 CS.Frame equ %10000000 framing error (set=error)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
35 CS.TxE equ %01000000 Tx data empty (set=empty)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
36 CS.CTS equ %00100000 CTS input (set=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
37 CS.DCD equ %00010000 DCD input (set=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
38 CS.DSR equ %00001000 DSR input (set=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
39 CS.Break equ %00000100 Rx line break (set=received break)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
40 CS.DTR equ %00000010 DTR output (set=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
41 CS.RTS equ %00000001 RTS output (set=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
42
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
43 * Control bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
44 C.TBRCDR equ %01000000 Tx Break/Compare Data register access (set=Tx Break)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
45 C.StpBit equ %00100000 stop bits (set=two, clear=one)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
46 C.Echo equ %00010000 local echo (set=activated)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
47 C.Baud equ %00001111 see baud rate table below
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
48
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
49 * baud rate table
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
50 org 0
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
51 BR.00050 rmb 1 50 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
52 BR.00110 rmb 1 109.2 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
53 BR.00135 rmb 1 134.58 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
54 BR.00150 rmb 1 150 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
55 BR.00300 rmb 1 300 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
56 BR.00600 rmb 1 600 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
57 BR.01200 rmb 1 1200 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
58 BR.01800 rmb 1 1800 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
59 BR.02400 rmb 1 2400 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
60 BR.03600 rmb 1 3600 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
61 BR.04800 rmb 1 4800 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
62 BR.07200 rmb 1 7200 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
63 BR.09600 rmb 1 9600 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
64 BR.19200 rmb 1 19200 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
65 BR.38400 rmb 1 38400 baud
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
66 BR.ExClk rmb 1 external Rx and Tx clocks
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
67
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
68 * Format bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
69 F.Slct equ %10000000 register select (set=Format, clear=Control)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
70 F.DatBit equ %01100000 see data bit table below
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
71 F.Par equ %00011100 see parity table below
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
72 F.DTR equ %00000010 DTR output (set=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
73 F.RTS equ %00000001 RTS output (set=disabled)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
74
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
75 * data bit table
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
76 DB.5 equ %00000000 five data bits per character
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
77 DB.6 equ %00100000 six data bits per character
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
78 DB.7 equ %01000000 seven data bits per character
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
79 DB.8 equ %01100000 eight data bits per character
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
80
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
81 * parity table
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
82 Par.None equ %00000000
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
83 Par.Odd equ %00000100
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
84 Par.Even equ %00001100
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
85 Par.Mark equ %00010100
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
86 Par.Spac equ %00011100
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
87
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
88 * Transmit Break bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
89 TB.Brk equ %00000010 Tx break control (set=transmit continuous line Break)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
90 TB.Par equ %00000001 parity check (set=parity bit to ISE.Par, clear=normal)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
91
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
92 * Buffer (0,u only) bit definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
93 B.Butn1 equ %00100000 button #1 (left, 1 = pressed)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
94 B.Butn2 equ %00010000 button #2 (right, 1 = pressed)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
95
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
96 B.Butns equ B.Butn1!B.Butn2 mask for all buttons
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
97
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
98
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
99 * mouse static data area definitions
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
100 org 0
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
101 Buffer rmb 2 Rx buffer for mouse data (must start at 0,u)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
102 Counter rmb 1 Rx data counter
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
103 CrntXPos rmb 2 mouse X position (0 to HResMaxX)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
104 CrntYPos rmb 2 mouse Y position (0 to HResMaxY*2)
f7384b5a59c8 Added for cc3io for nitros
boisy
parents:
diff changeset
105