1804
|
1 IFNE CCIODEFS-1
|
1796
|
2
|
|
3 CCIODEFS set 1
|
|
4
|
1593
|
5 ********************************************************************
|
1658
|
6 * CCIODefs - CoCo 1/2 I/O Definitions
|
1593
|
7 *
|
|
8 * $Id$
|
|
9 *
|
|
10 * Edt/Rev YYYY/MM/DD Modified by
|
|
11 * Comment
|
|
12 * ------------------------------------------------------------------
|
1736
|
13 *
|
1804
|
14 * 2004/11/29 P.Harvey-Smith.
|
1736
|
15 * Added symbolic defines for bits in V.CoLoad.
|
|
16 *
|
1804
|
17 * 2004/12/02 P.Harvey-Smith.
|
|
18 * Moved over all variables from co51.asm
|
1736
|
19 *
|
1804
|
20 * 2005/04/09 P.Harvey-Smith.
|
|
21 * Decoded rest of the CO51 memory locations.
|
1796
|
22 *
|
1804
|
23
|
1796
|
24 nam CCIODefs
|
|
25 ttl CoCo 1/2 I/O Definitions
|
|
26
|
1658
|
27 ********************
|
|
28 * CCIO Static Memory
|
|
29 *
|
1796
|
30 org V.SCF
|
|
31 V.ScrnA rmb 2 (2) screen start address in system memory
|
|
32 V.ScrnE rmb 2 (2) address of end of screen
|
|
33 V.CrsrA rmb 1 (2) cursor address
|
|
34 V.CrsAL rmb 1 cursor address low
|
|
35 V.CChar rmb 1 value of character under cursor
|
|
36 V.Mode rmb 1 mode: 0=256x192 x2, 1=128x192 x4
|
|
37 V.NGChr rmb 1 number of additional characters to get
|
|
38 V.RTAdd rmb 2 (2) return address after getting characters
|
|
39 V.NChar rmb 1 character to process
|
|
40 V.NChr2 rmb 1 and the next one
|
|
41 rmb 1
|
|
42 V.Chr1 rmb 1 same as under cursor character
|
|
43 V.CColr rmb 1 cursor color
|
|
44 V.Col rmb 1 number of columns for this screen
|
|
45 V.Row rmb 1 number of rows
|
|
46 V.Alpha rmb 1 0 when in alpha mode
|
|
47 V.PIA1 rmb 1 PIA1Base value
|
|
48 V.Rdy rmb 1 device ready (see SS.DStat 0=not ready)
|
|
49 V.CFlg1 rmb 1 VDG display code values
|
|
50 V.SBAdd rmb 2 (2) address of block screen is in
|
|
51 V.GBuff rmb 2 allocation for graphics buffers (block#)
|
|
52 V.AGBuf rmb 4 (2) additional graphics buffer
|
|
53 V.FFMem rmb 2 Flood fill alloc'ed mem
|
|
54 V.FFSPt rmb 2 Flood fill current stack pointer
|
|
55 V.FFSTp rmb 1 Flood fill stack top
|
|
56 V.FF6 rmb 1 flood fill flag
|
|
57 V.FFFlag rmb 1 ??
|
|
58 V.MTabl rmb 2 (2) address of mask table for pixels in byte
|
|
59 V.PixBt rmb 1 bit mask for modes (0=$07, 1=$03 )#pixels/byte
|
|
60 V.GCrsX rmb 1 graphics cursor X value
|
|
61 V.GCrsY rmb 1 graphics cursor Y
|
|
62 V.Msk1 rmb 1 mask byte 1
|
|
63 V.Msk2 rmb 1 mask byte 2 (00,55,AA,FF)
|
|
64 V.MCol rmb 1 color? (C003,8001)
|
|
65 V.4A rmb 1
|
|
66 V.PMask rmb 1 pixel mask for colors (i.e. $55, $CC etc)
|
|
67 V.4C rmb 1
|
|
68 V.4D rmb 1
|
|
69 V.4E rmb 1
|
|
70 V.4F rmb 1
|
|
71 V.Caps rmb 1 caps lock info: $00=lower $FF=upper
|
|
72 V.ClkCnt rmb 1 clock count ??
|
|
73 V.WrChr rmb 1 character to write
|
|
74 V.CurCo rmb 1 current CO-module in use
|
1593
|
75 * start of CO80-specific static memory
|
1796
|
76 V.Co80X rmb 1 V.54
|
|
77 V.Co80Y rmb 1 V.55
|
|
78 V.ColPtr rmb 1 V.56
|
|
79 V.RowPtr rmb 1 V.57
|
|
80 V.C80X rmb 1 CO80 X position
|
|
81 V.C80Y rmb 1 CO80 Y position
|
|
82 V.Invers rmb 1
|
1593
|
83 * end of CO80-specific static memory
|
1796
|
84 V.DspVct rmb 2 vector to display screen
|
|
85 V.CnvVct rmb 2 vector to X/Y to address conversion
|
|
86 V.LKeyCd rmb 1 last key code
|
|
87 V.2Key1 rmb 1 2nd Key 1
|
|
88 V.2Key2 rmb 1 2nd Key 2
|
|
89 V.2Key3 rmb 1 2nd Key 3
|
|
90 V.Key1 rmb 1 Key 1
|
|
91 V.Key2 rmb 1 Key 2
|
|
92 V.Key3 rmb 1 Key 3
|
|
93 V.ShftDn rmb 1 SHIFT/CTRL state
|
|
94 V.CtrlDn rmb 1 CTRL key down
|
|
95 V.KeyFlg rmb 1 key flag
|
|
96 V.AltDwn rmb 1 ALT key down
|
|
97 V.KySns rmb 1 key sense flags
|
|
98 V.KySame rmb 1 key same as last flag
|
|
99 V.KySnsF rmb 1 key sense flag
|
|
100 V.Spcl rmb 1
|
|
101 V.KTblLC rmb 1 key table entry #
|
|
102 V.6F rmb 1 ???
|
|
103 V.COLoad rmb 1 CO-module loaded flags
|
|
104 V.CFlag rmb 1 true lowercase flag $10=true, $00=false
|
|
105 V.GRFOE rmb 2 GRFO entry point
|
|
106 V.CO32E rmb 2 CO32 entry point
|
|
107 V.CO80E rmb 2 CO80 entry point
|
|
108 V.CO51E rmb 2 CO51 entry point
|
1804
|
109
|
|
110 * CO51 vars
|
|
111
|
1796
|
112 V.51ScrnA rmb 2 * Screen address.
|
|
113 V.51XPos rmb 1 * X co-ordinate
|
|
114 V.51YPos rmb 1 * Y co-ordinate
|
|
115 V.51EscSeq rmb 1 * In escape sequence
|
|
116 V.51ReverseFlag rmb 1 * Reverse video flag
|
|
117 V.51UnderlineFlag rmb 1 * Underline flag
|
|
118 V.51CtrlDispatch rmb 2 * Ctrl char dispatch address, currently processing
|
|
119 V.51BytePixOffset rmb 1 * byte offset in screen line, of character X position
|
|
120 V.51OldCursorPosX rmb 1 * Position of old cursor before update
|
|
121 V.51OldCursorPosY rmb 1
|
|
122 V.51CursorChanged rmb 1 * Has cursor position changed ? 1=yes,0=no
|
|
123 V.51CursorOn rmb 1 * Is cursor on ? 1=yes 0=no
|
|
124 V.51XORFlag rmb 1 * and data to screen (0) or Xor (1)
|
|
125 V.51ScreenMask1 rmb 1 * screen masks for drawing characters on screen
|
|
126 V.51ScreenMask2 rmb 1
|
1804
|
127 * End of CO51 vars
|
|
128 **** Note these have to come at the end of the defs, or the keyboard ****
|
|
129 **** code can clobber variables defined after these ! ****
|
1796
|
130 V.IBufH rmb 1 input buffer head
|
|
131 V.IBufT rmb 1 input buffer tail
|
|
132 V.InBuf rmb 1 input buffer tail
|
|
133 V.51End rmb 1
|
|
134 rmb 250-.
|
|
135 V.Last equ .
|
|
136
|
|
137
|
1658
|
138 * Unknown for now
|
1593
|
139 *VD.FFMem rmb 2 (2) bottom of stack for flood fill
|
|
140 *VD.FFSPt rmb 2 (2) flood fill stack pointer
|
|
141 *VD.FFSTp rmb 2 (2) flood fill stack top pointer
|
|
142 *VD.FF6 rmb 1 flood fill flag
|
|
143 *VD.MCol2 rmb 1 color
|
|
144 *VD.FF1 rmb 1 data for flood fill
|
|
145 *VD.FF2 rmb 1 data for flood fill
|
|
146 *VD.FFMsk rmb 1 flood fill mask
|
|
147 *VD.FFFlg rmb 1 flood fill flag
|
|
148 *VD.Palet rmb 16 (16) current palette values
|
|
149 *VD.PlFlg rmb 1 initialized to $08 by L00DB, and then unused!
|
1796
|
150
|
1804
|
151 *
|
|
152 * Defs for V.COLoad flags.
|
|
153 *
|
1796
|
154
|
1804
|
155 ModCO32 equ %00000010 CO32, normal VDG 32x16.
|
|
156 ModCO80 equ %00000100 CO80, wordpak rs, 80x25
|
|
157 ModCO51 equ %00001000 CO51, pmode 4 51x25 text
|
|
158
|
|
159 ENDC
|