annotate defs/vtiodefs @ 2402:04755ee002ba

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