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