annotate defs/cciodefs @ 1825:f6a8c676b8bb

Added variable definitions for cursor flash routines.
author afra
date Sun, 24 Apr 2005 21:15:39 +0000
parents 6e5fa42c2fb1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
1 IFNE CCIODEFS-1
1796
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
2
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
3 CCIODEFS set 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
4
1593
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
5 ********************************************************************
1658
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents: 1593
diff changeset
6 * CCIODefs - CoCo 1/2 I/O Definitions
1593
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
7 *
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
8 * $Id$
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
9 *
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
10 * Edt/Rev YYYY/MM/DD Modified by
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
11 * Comment
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
12 * ------------------------------------------------------------------
1736
fd288a57f6ab CO51 additions by Phill
boisy
parents: 1658
diff changeset
13 *
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
14 * 2004/11/29 P.Harvey-Smith.
1736
fd288a57f6ab CO51 additions by Phill
boisy
parents: 1658
diff changeset
15 * Added symbolic defines for bits in V.CoLoad.
fd288a57f6ab CO51 additions by Phill
boisy
parents: 1658
diff changeset
16 *
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
17 * 2004/12/02 P.Harvey-Smith.
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
18 * Moved over all variables from co51.asm
1736
fd288a57f6ab CO51 additions by Phill
boisy
parents: 1658
diff changeset
19 *
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
20 * 2005/04/09 P.Harvey-Smith.
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
21 * Decoded rest of the CO51 memory locations.
1796
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
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
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
26
1796
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
27 nam CCIODefs
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
28 ttl CoCo 1/2 I/O Definitions
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
29
1658
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents: 1593
diff changeset
30 ********************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents: 1593
diff changeset
31 * CCIO Static Memory
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents: 1593
diff changeset
32 *
1796
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
33 org V.SCF
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
34 V.ScrnA rmb 2 (2) screen start address in system memory
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
35 V.ScrnE rmb 2 (2) address of end of screen
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
36 V.CrsrA rmb 1 (2) cursor address
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
37 V.CrsAL rmb 1 cursor address low
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
38 V.CChar rmb 1 value of character under cursor
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
39 V.Mode rmb 1 mode: 0=256x192 x2, 1=128x192 x4
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
40 V.NGChr rmb 1 number of additional characters to get
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
41 V.RTAdd rmb 2 (2) return address after getting characters
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
42 V.NChar rmb 1 character to process
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
43 V.NChr2 rmb 1 and the next one
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
44 rmb 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
45 V.Chr1 rmb 1 same as under cursor character
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
46 V.CColr rmb 1 cursor color
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
47 V.Col rmb 1 number of columns for this screen
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
48 V.Row rmb 1 number of rows
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
49 V.Alpha rmb 1 0 when in alpha mode
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
50 V.PIA1 rmb 1 PIA1Base value
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
51 V.Rdy rmb 1 device ready (see SS.DStat 0=not ready)
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
52 V.CFlg1 rmb 1 VDG display code values
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
53 V.SBAdd rmb 2 (2) address of block screen is in
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
54 V.GBuff rmb 2 allocation for graphics buffers (block#)
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
55 V.AGBuf rmb 4 (2) additional graphics buffer
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
56 V.FFMem rmb 2 Flood fill alloc'ed mem
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
57 V.FFSPt rmb 2 Flood fill current stack pointer
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
58 V.FFSTp rmb 1 Flood fill stack top
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
59 V.FF6 rmb 1 flood fill flag
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
60 V.FFFlag rmb 1 ??
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
61 V.MTabl rmb 2 (2) address of mask table for pixels in byte
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
62 V.PixBt rmb 1 bit mask for modes (0=$07, 1=$03 )#pixels/byte
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
63 V.GCrsX rmb 1 graphics cursor X value
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
64 V.GCrsY rmb 1 graphics cursor Y
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
65 V.Msk1 rmb 1 mask byte 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
66 V.Msk2 rmb 1 mask byte 2 (00,55,AA,FF)
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
67 V.MCol rmb 1 color? (C003,8001)
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
68 V.4A rmb 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
69 V.PMask rmb 1 pixel mask for colors (i.e. $55, $CC etc)
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
70 V.4C rmb 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
71 V.4D rmb 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
72 V.4E rmb 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
73 V.4F rmb 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
74 V.Caps rmb 1 caps lock info: $00=lower $FF=upper
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
75 V.ClkCnt rmb 1 clock count ??
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
76 V.WrChr rmb 1 character to write
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
77 V.CurCo rmb 1 current CO-module in use
1593
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
78 * start of CO80-specific static memory
1796
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
79 V.Co80X rmb 1 V.54
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
80 V.Co80Y rmb 1 V.55
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
81 V.ColPtr rmb 1 V.56
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
82 V.RowPtr rmb 1 V.57
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
83 V.C80X rmb 1 CO80 X position
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
84 V.C80Y rmb 1 CO80 Y position
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
85 V.Invers rmb 1
1593
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
86 * end of CO80-specific static memory
1796
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
87 V.DspVct rmb 2 vector to display screen
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
88 V.CnvVct rmb 2 vector to X/Y to address conversion
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
89 V.LKeyCd rmb 1 last key code
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
90 V.2Key1 rmb 1 2nd Key 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
91 V.2Key2 rmb 1 2nd Key 2
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
92 V.2Key3 rmb 1 2nd Key 3
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
93 V.Key1 rmb 1 Key 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
94 V.Key2 rmb 1 Key 2
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
95 V.Key3 rmb 1 Key 3
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
96 V.ShftDn rmb 1 SHIFT/CTRL state
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
97 V.CtrlDn rmb 1 CTRL key down
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
98 V.KeyFlg rmb 1 key flag
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
99 V.AltDwn rmb 1 ALT key down
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
100 V.KySns rmb 1 key sense flags
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
101 V.KySame rmb 1 key same as last flag
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
102 V.KySnsF rmb 1 key sense flag
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
103 V.Spcl rmb 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
104 V.KTblLC rmb 1 key table entry #
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
105 V.6F rmb 1 ???
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
106 V.COLoad rmb 1 CO-module loaded flags
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
107 V.CFlag rmb 1 true lowercase flag $10=true, $00=false
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
108 V.GRFOE rmb 2 GRFO entry point
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
109 V.CO32E rmb 2 CO32 entry point
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
110 V.CO80E rmb 2 CO80 entry point
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
111 V.CO51E rmb 2 CO51 entry point
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
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
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
117 * CO51 vars
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
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
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
134 * End of CO51 vars
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
135 **** Note these have to come at the end of the defs, or the keyboard ****
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
136 **** code can clobber variables defined after these ! ****
1796
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
137 V.IBufH rmb 1 input buffer head
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
138 V.IBufT rmb 1 input buffer tail
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
139 V.InBuf rmb 1 input buffer tail
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
140 V.51End rmb 1
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
141 rmb 250-.
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
142 V.Last equ .
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
143
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
144
1658
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents: 1593
diff changeset
145 * Unknown for now
1593
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
146 *VD.FFMem rmb 2 (2) bottom of stack for flood fill
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
147 *VD.FFSPt rmb 2 (2) flood fill stack pointer
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
148 *VD.FFSTp rmb 2 (2) flood fill stack top pointer
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
149 *VD.FF6 rmb 1 flood fill flag
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
150 *VD.MCol2 rmb 1 color
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
151 *VD.FF1 rmb 1 data for flood fill
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
152 *VD.FF2 rmb 1 data for flood fill
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
153 *VD.FFMsk rmb 1 flood fill mask
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
154 *VD.FFFlg rmb 1 flood fill flag
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
155 *VD.Palet rmb 16 (16) current palette values
d87e5e9b4f1b Updates
boisy
parents:
diff changeset
156 *VD.PlFlg rmb 1 initialized to $08 by L00DB, and then unused!
1796
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
157
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
158 *
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
159 * Defs for V.COLoad flags.
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
160 *
1796
ce1ed7b7746f Updated by PHS
boisy
parents: 1750
diff changeset
161
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
162 ModCO32 equ %00000010 CO32, normal VDG 32x16.
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
163 ModCO80 equ %00000100 CO80, wordpak rs, 80x25
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
164 ModCO51 equ %00001000 CO51, pmode 4 51x25 text
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
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
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1796
diff changeset
173 ENDC