annotate defs/cciodefs @ 1796:ce1ed7b7746f

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