annotate defs/vtiodefs @ 1971:136a4e706aa6

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