annotate defs/cc3iodefs @ 1847:6e51e709faf3

Defs update
author boisy
date Sat, 25 Jun 2005 12:02:28 +0000
parents fa2ada33b05e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1658
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
1 IFNE CC3IODEFS-1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
2
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
3 CC3IODEFS set 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
4
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
5 ********************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
6 * CC3IODefs - CoCo 3 I/O Definitions
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
7 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
8 * $Id$
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
9 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
10 * Edt/Rev YYYY/MM/DD Modified by
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
11 * Comment
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
12 * ------------------------------------------------------------------
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
13 * 2004/07/18 Boisy G. Pitre
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
14 * Started from systype
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
15
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
16 nam CC3IODefs
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
17 ttl CoCo 3 I/O Definitions
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
18
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
19
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
20 ****************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
21 * Window Devices
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
22 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
23 org $FF9F
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
24 A.W rmb 1 $FF9F Generic Window Descriptor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
25 A.TermW rmb 1 $FFA0 Windowing Term
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
26 A.W1 rmb 1 $FFA1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
27 A.W2 rmb 1 $FFA2
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
28 A.W3 rmb 1 $FFA3
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
29 A.W4 rmb 1 $FFA4
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
30 A.W5 rmb 1 $FFA5
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
31 A.W6 rmb 1 $FFA6
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
32 A.W7 rmb 1 $FFA7
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
33 A.W8 rmb 1 $FFA8
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
34 A.W9 rmb 1 $FFA9
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
35 A.W10 rmb 1 $FFAA
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
36 A.W11 rmb 1 $FFAB
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
37 A.W12 rmb 1 $FFAC
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
38 A.W13 rmb 1 $FFAD
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
39 A.W14 rmb 1 $FFAE
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
40 A.W15 rmb 1 $FFAF
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
41
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
42 **********************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
43 * Pointer Device Packet Definition
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
44 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
45 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
46 Pt.Valid rmb 1 Is returned info valid (0=no/1=yes)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
47 Pt.Actv rmb 1 Active Side 0=off/1=Right/2=left
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
48 Pt.ToTm rmb 1 Time out Initial value
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
49 rmb 2 reserved
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
50 Pt.TTTo rmb 1 Time Till Timeout
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
51 Pt.TSSt rmb 2 Time Since Start Counter
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
52 Pt.CBSA rmb 1 Current Button State Button A
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
53 Pt.CBSB rmb 1 Current Button State Button B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
54 Pt.CCtA rmb 1 Click Count Button A
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
55 Pt.CCtB rmb 1 Click Count Button B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
56 Pt.TTSA rmb 1 Time This State Counter Button A
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
57 Pt.TTSB rmb 1 Time This State Counter Button B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
58 Pt.TLSA rmb 1 Time Last State Counter Button A
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
59 Pt.TLSB rmb 1 Time Last State Counter Button B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
60 rmb 2 Reserved
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
61 Pt.BDX rmb 2 Button down X value EXPERIMENTAL
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
62 Pt.BDY rmb 2 Button down Y value
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
63 Pt.Stat rmb 1 Window Pointer type location
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
64 Pt.Res rmb 1 Resolution (0..640 by: 0=ten/1=one)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
65 Pt.AcX rmb 2 Actual X Value
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
66 Pt.AcY rmb 2 Actual Y Value
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
67 Pt.WRX rmb 2 Window Relative X
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
68 Pt.WRY rmb 2 Window Relative Y
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
69 Pt.Siz equ . Packet Size 32 bytes
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
70
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
71 **************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
72 * window regions for mouse
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
73 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
74 WR.Cntnt equ 0 content region
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
75 WR.Cntrl equ 1 control region
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
76 WR.OfWin equ 2 off window
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
77
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
78 *************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
79 * Standard system get/put buffer defs
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
80 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
81 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
82 * system group numbers
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
83 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
84 org 200
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
85 Grp.Fnt rmb 1 font group
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
86 Grp.Clip rmb 1 clipboard group
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
87 Grp.Ptr rmb 1 pointer group
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
88 Grp.Pat2 rmb 1 pattern group 2 color
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
89 Grp.Pat4 rmb 1 pattern group 4 color
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
90 Grp.Pat6 rmb 1 pattern group 16 color
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
91 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
92 * font buffer numbers
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
93 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
94 org 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
95 Fnt.S8x8 rmb 1 standard 8x8 font
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
96 Fnt.S6x8 rmb 1 standard 6x8 font
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
97 Fnt.G8x8 rmb 1 standard graphics 8x8 font
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
98 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
99 * pattern buffer numbers
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
100 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
101 org 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
102 Pat.Dot rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
103 Pat.Vrt rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
104 Pat.Hrz rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
105 Pat.XHtc rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
106 Pat.LSnt rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
107 Pat.RSnt rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
108 Pat.SDot rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
109 Pat.BDot rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
110 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
111 * pointer buffer numbers
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
112 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
113 org 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
114 Ptr.Arr rmb 1 Arrow pointer
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
115 Ptr.Pen rmb 1 Pencil pointer
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
116 Ptr.LCH rmb 1 Large cross hair pointer
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
117 Ptr.Slp rmb 1 Wait timer pointer
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
118 Ptr.Ill rmb 1 Illegal action pointer
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
119 Ptr.Txt rmb 1 Text pointer
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
120 Ptr.SCH rmb 1 Small cross hair pointer
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
121
1847
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
122 **********************
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
123 * KeyDrv Entry Points
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
124 org 0
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
125 K$Init rmb 3 joystick initialization
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
126 K$Term rmb 3 joystick termination
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
127 K$FnKey rmb 3 get function key states
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
128 K$RdKey rmb 3 get key states
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
129
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
130 **********************
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
131 * JoyDrv Entry Points
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
132 org 0
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
133 J$Init rmb 3 joystick initialization
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
134 J$Term rmb 3 joystick termination
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
135 J$MsBtn rmb 3 get mouse button states
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
136 J$MsXY rmb 3 get mouse X/Y coordinates
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
137 J$JyBtn rmb 3 get joystick button states
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
138 J$JyXY rmb 3 get joystick X/Y coordinates
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
139
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
140 **********************
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
141 * SndDrv Entry Points
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
142 org 0
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
143 S$Init rmb 3 joystick initialization
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
144 S$GetStt rmb 3 joystick termination
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
145 S$SetStt rmb 3 joystick termination
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
146 S$Term rmb 3 get joystick X/Y coordinates
6e51e709faf3 Defs update
boisy
parents: 1715
diff changeset
147
1658
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
148 ********************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
149 * Window/Menu Bar Data Structure
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
150 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
151 * To be used in SS.WnSet SETSTAT to set up a Framed Window
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
152 * for use in the high level windowing package.
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
153 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
154 NUMMENS equ 10 maximum number of menus on menu bar
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
155 NUMITMS equ 20 maximum number of items in a menu
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
156 MXTTLEN equ 15 max chars for menu and item names
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
157 WINSYNC equ $C0C0 synch bytes for window validation
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
158 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
159 * Menu Item Descriptor : (MN.ITEMS)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
160 * one required for each item within the menu
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
161 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
162 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
163 MI.TTL rmb MXTTLEN item name
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
164 MI.ENBL rmb 1 enable flag
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
165 MI.RES rmb 5 reserved bytes
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
166 MI.SIZ equ . size of menu item descriptor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
167 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
168 * Menu Descriptor :
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
169 * one for each menu on the manu bar
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
170 * each is pointed to by MB.MPTR below
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
171 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
172 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
173 MN.TTL rmb MXTTLEN menu title
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
174 MN.ID rmb 1 menu id number (1-255)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
175 MN.XSIZ rmb 1 horiz. size of desired pull down
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
176 MN.NITS rmb 1 number of items in menu
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
177 MN.ENBL rmb 1 enable flag
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
178 MN.RES rmb 2 reserved bytes
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
179 MN.ITEMS rmb 2 pointer to array of menu items
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
180 MN.SIZ equ . size of menu descriptor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
181 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
182 * Window Descriptor:
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
183 * one required for each application in a framed window
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
184 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
185 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
186 WN.TTL rmb 20 title of window for title bar
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
187 WN.NMNS rmb 1 number of menus in menu bar
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
188 WN.XMIN rmb 1 minimal horiz. size for application to run
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
189 WN.YMIN rmb 1 minimal vert. size for application to run
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
190 WN.SYNC rmb 2 synch bytes ($C0C0)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
191 WN.RES rmb 7 reserved bytes
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
192 WN.BAR rmb 2 pointer to arry of menu descriptors
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
193 WN.SIZ equ . size of window/menu bar descriptor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
194
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
195 *************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
196 * Window Type Definitions
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
197 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
198 * To be used in setting up the border of the window in
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
199 * the SS.WnSel SETSTAT
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
200 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
201 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
202 WT.NBox rmb 1 No Box
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
203 WT.FWin rmb 1 Framed Window
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
204 WT.FSWin rmb 1 Framed Window w/Scroll Bars
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
205 WT.SBox rmb 1 Shadowed Box
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
206 WT.DBox rmb 1 Double Box
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
207 WT.PBox rmb 1 Plain Box
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
208
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
209 *************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
210 * Pre-Defined Menu IDs for the system
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
211 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
212 org 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
213 MId.Mov rmb 1 move box
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
214 MId.Cls rmb 1 close box
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
215 MId.Grw rmb 1 grow box
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
216 MId.SUp rmb 1 scroll up
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
217 MId.SDn rmb 1 scroll down
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
218 MId.SRt rmb 1 scroll right
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
219 MId.SLt rmb 1 scroll left
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
220 MId.Chr rmb 1 character was depressed
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
221 org 20
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
222 MId.Tdy rmb 1 Tandy menu
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
223 MId.Fil rmb 1 Files Menu
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
224 MId.Edt rmb 1 Edit Menu
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
225 MId.Sty rmb 1 Styles menu
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
226 MId.Fnt rmb 1 Font menu
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
227
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
228
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
229 ******************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
230 ******************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
231 ** **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
232 ** NitrOS-9 Windowing system Global data definitions **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
233 ** **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
234 ******************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
235 ******************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
236 ** **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
237 ** System memory block 0 layout: **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
238 ** **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
239 ** $0000-$0001 : FHL/Isted WD 1002-05 - interface base address **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
240 ** $0002 : FHL/Isted WD 1002-05 - boot device physical drive # **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
241 ** $0008 : Bruce Isted Serial mouse - button counter & rx count **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
242 ** $0009-$000B : Bruce Isted Serial mouse - RX buffer **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
243 ** $000C-$000D : Bruce Isted Serial mouse - Current X position **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
244 ** $000E-$000F : Bruce Isted Serial mouse - Current Y position **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
245 ** $0010-$001F : unused (User definable) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
246 ** $0020-$00FF : system direct page & some IRQ vectors **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
247 ** $0100-$011F : Task usage table **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
248 ** $0120-$01FF : Virtual DAT tasks (pointed to by <D.TskIPt) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
249 ** $0200-$02FF : memory block usage map ($80=Not RAM,$01=in use,$02=module) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
250 ** $0300-$03FF : system's system call dispatch table **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
251 ** $0400-$04FF : user's sysem call dispatch table **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
252 ** $0500-$05FF : process descriptor pointer table **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
253 ** $0600-$07FF : System task (Task 0, ID 1) process descriptor **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
254 ** $0800-$08FF : System's stack space (initial ptr is $0900) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
255 ** $0900-$09FF : SMAP table ($01=in used, $80=NOT RAM) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
256 ** $0A00-$0FFF : module directory DAT Images (8 bytes each) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
257 ** $1000-$10FF : System Global memory (pointed to by D.CCMem) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
258 ** $1100-$11FF : GRFDRV global memory (DP=$11 in GRFDRV) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
259 ** $1200-$1247 : shared buffer between Grf/WindInt & GRFDRV (GP buffers) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
260 ** $1248-$127F : ???? **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
261 ** $1280-$1A7F : the window tables (32 of $40 bytes each) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
262 ** $1A80-$1C7F : the screen tables (16 of $20 bytes each) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
263 ** $1C80-$2000 : the CC3 global mem stack (for windowing) **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
264 ** **
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
265 ******************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
266 ******************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
267
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
268 * User settable values for CC3IO/TC9IO/GrfInt/WindInt & GrfDrv
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
269 MaxLines equ 25 Max. Y coord text value
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
270 Meg set false "true" if 1 or 2 meg machine
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
271
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
272 COMP equ 0 composite monitor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
273 RGB equ 1 RGB Analog monitor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
274 MONO equ 2 monochrome monitor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
275
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
276 Monitor set RGB
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
277
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
278 * Global definitions
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
279 KeyMse equ %00000001 keyboard mouse enabled
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
280 NumLck equ %00000010 Numlock enabled (TC-9 use only)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
281 CapsLck equ %00000100 Capslock enabled
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
282 MaxRows equ 640 maximum X co-ordinate allowed on mouse
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
283 IFEQ MaxLines-25
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
284 MaxLine equ 198 maximum Y co-ordinate allowed on mouse
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
285 ELSE
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
286 MaxLine equ 191 maximum Y co-ordinate allowed on mouse
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
287 ENDC
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
288
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
289 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
290 * Static memory area for each window (CC3IO/TC9IO)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
291 * Should set up a write buffer (using parm area?) between SCF, CC3IO & Grfdrv
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
292 * so we can 'burst mode' text output (copy up to 48 chars to Grfdrv's parm
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
293 * area, and have grfdrv loop through & write all 48 chars to screen in 1 loop
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
294 * May have to have smaller limit for text to gfx screens, as it will run much
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
295 * slower, unless GrfDrv is made Partially/Fully Re-Entrant
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
296 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
297 * STRONG CAUTION: scfdefs MUST be included first before this file if
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
298 * V.SCF is to be resolved properly in pass 1!!
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
299 org V.SCF
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
300 V.WinType rmb 1 window type (0=Windint/GrfInt,2=VDGInt) $1D
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
301 V.InfVld rmb 1 Rest of info here valid? (0=NO, >0 = YES) $1E
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
302 V.DevPar rmb 2 high bit=window device $1F
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
303 V.ULCase rmb 1 special key flags (Capslck & keyboard mouse) $21
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
304 V.KySnsFlg rmb 1 flag for key sense setstat $22
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
305 V.ScrChg rmb 1 screen change flag $23
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
306 V.SSigID rmb 1 data ready process ID $24
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
307 V.SSigSg rmb 1 data ready signal code $25
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
308 V.MSigID rmb 1 mouse signal process ID $26
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
309 V.MSigSg rmb 1 mouse signal signal code $27
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
310 V.MSmpl rmb 1 mouse sample rate $28
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
311 V.MTime rmb 1 mouse timeout value $29
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
312 rmb 1 unused $2A
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
313 V.MAutoF rmb 1 auto follow mouse flag $2B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
314 V.ParmCnt rmb 1 parameter count $2C
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
315 V.ParmVct rmb 2 parameter vector $2D
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
316 V.PrmStrt rmb 2 pointer to params start $2F
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
317 V.NxtPrm rmb 2 pointer to next param storage $31
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
318 V.EndPtr rmb 1 last character read offset $33
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
319 V.InpPtr rmb 1 next character read offset $34
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
320 V.WinNum rmb 1 window table entry # $35
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
321 V.DWNum rmb 1 dwnum from descriptor $36
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
322 V.CallCde rmb 1 internal comod call code # $37
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
323 CC3Parm rmb 128-. global parameter area
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
324 ReadBuf rmb 256-. read input buffer (keyboard)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
325 CC3DSiz equ .
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
326
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
327 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
328 * GrfInt/WindInt global memory area
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
329 * This area sits in system block 0 from $1000 to $10ff
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
330 WGlobal equ $1000 useful value (points to address starting below)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
331 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
332 G.CurTik rmb 1 Constant - # Clock ticks/cursor updates (2)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
333 G.CntTik rmb 1 Current tick count for cursor updates
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
334 G.GfBusy rmb 1 Grfdrv is busy flag (1=busy)
1715
fa2ada33b05e g0003 is now G.OldAlt
boisy
parents: 1658
diff changeset
335 G.OrgAlt rmb 2 Place to store D.AltIRQ before altering
fa2ada33b05e g0003 is now G.OldAlt
boisy
parents: 1658
diff changeset
336 *g0003 rmb 2 NEW: UNUSED
1658
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
337 g0005 rmb 2 Temp save in Windint RG
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
338 G.GrfStk rmb 2 grfdrv stack pointer ($07)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
339 G.MonTyp rmb 1 monitor type
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
340 g000A equ . Old label for compatibility
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
341 G.CrDvFl rmb 1 Are we current device flag (only set when all
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
342 * Parms have been moved to Dev Mem)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
343 * 0=We are not on our device
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
344 * 1=We are the current device
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
345 * (Used by comod (GRF/WIND/VDGInt) to determine
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
346 * whether or not to update GIME regs themselves
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
347 * If not current device, they don't.)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
348 G.WinType rmb 1 current device's V.TYPE
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
349 G.CurDvM rmb 2 current device memory pointer for co-module use
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
350 G.WIBusy rmb 1 WindInt is busy flag (1=busy)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
351 G.AlPckt rmb 6 F$Alarm time packet
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
352 G.AlPID rmb 1 F$Alarm proc ID ($15)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
353 G.AlSig rmb 1 F$Alarm signal code ($16)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
354 G.BelVec rmb 2 BELL routine vector
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
355 G.DefPal rmb 2 pointer to default palette data in global mem
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
356 G.TnCnt rmb 1 SS.Tone duration counter
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
357 G.BelTnF rmb 1 BELL tone flag
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
358 g001D rmb 3
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
359 G.CurDev rmb 2 current device's static memory pointer ($20)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
360 G.PrWMPt rmb 2 previous window static mem pointer $(22)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
361 G.BCFFlg rmb 1 bit coded co-module found flags ($24)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
362 * 00000010 : VDGInt found
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
363 * 10000000 : GrfDrv found
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
364 g0025 rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
365 G.KTblLC rmb 1 Key table entry# last checked (1-3)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
366 * IFEQ TC9-true
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
367 *CurLght rmb 1 current keyboard light settings
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
368 * ELSE
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
369 G.LastCh rmb 1 last keyboard character (ASCII value)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
370 * ENDC
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
371 G.LKeyCd rmb 1 last keyboard code
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
372 G.KyRept rmb 1 key repeat counter
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
373 * A secondary 3 key table (same format as g002D below)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
374 G.2Key1 rmb 1 $2A
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
375 G.2Key2 rmb 1 $2B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
376 G.2Key3 rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
377 * Up to 3 keys can be registerd at once, and they are stored here. If more
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
378 * than 3 are hit, the last key is overwritten with the very last key down that
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
379 * was checked. Format for all three is the same as the PIA column/row byte @
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
380 * KeyFlag below.
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
381 G.Key1 rmb 1 Key 1 being held down (Row/Column #)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
382 G.Key2 rmb 1 Key 2 being held down (Row/Column #)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
383 G.Key3 rmb 1 Key 3 being held down (Row/Column #)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
384 G.ShftDn rmb 1 SHIFT key down flag (COM'd) ($30)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
385 G.CntlDn rmb 1 CTRL key down flag (0=NO)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
386 G.KeyFlg rmb 1 Keyboard PIA bit #'s for columns/rows
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
387 * %00000111-Column # (Output, 0-7)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
388 * %00111000-Row # (Input, 0-6)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
389 G.AltDwn rmb 1 ALT key down flag (0=NO)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
390 G.KySns rmb 1 key sense byte
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
391 G.KySame rmb 1 same key flag
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
392 G.CapLok rmb 1 CapsLock/SysRq key down flag
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
393 rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
394 g0038 rmb 1 grfdrv initialized flag
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
395 rmb 2
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
396 G.MSmpRt rmb 1 Current mouse sample # (# ticks till next read)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
397 G.Mouse rmb Pt.Siz mouse packet ($3C)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
398 g005C rmb 2 Temp for relative mouse X coord calculation
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
399 g005E rmb 2 Temp for relative mouse Y coord calculation
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
400 G.MSmpRV rmb 1 Mouse sample reset value (# ticks till next read)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
401 G.KyDly rmb 1 initial key repeat delay constant ($61)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
402 G.KySpd rmb 1 secondary key repeat delay constant
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
403 * IFEQ TC9-true
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
404 *KeyParm rmb 1 keyboard command parameter byte
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
405 * ELSE
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
406 G.KyMse rmb 1 keyboard mouse flag ($63)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
407 * ENDC
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
408 G.Clear rmb 1 "one-shot" CapsLock/SysRq key flag ($64)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
409 G.KyButt rmb 1 keyboard F1 and F2 "fire" button info ($65)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
410 G.AutoMs rmb 1 Auto-follow mouse flag for current device (0=NO)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
411 G.MseMv rmb 1 mouse moved flag ($67)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
412 G.CoTble rmb 6 co-module table ($68)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
413 G.GrfEnt rmb 2 GRFDRV Entry address ($6E)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
414 g0070 rmb 1 # bytes to move in 1 block (1-72)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
415 G.WUseTb rmb 4 windows in use bit table (0=unused, 32 windows) ($71)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
416 G.GfxTbl rmb 2 Pointer to GFX tables ($75)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
417 G.WrkWTb rmb $40 Work window table. WindInt only ($77)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
418 g00B7 rmb 2 Current Device static mem ptr for WindInt
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
419 g00B9 rmb 2 Current window table ptr for WindInt
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
420 g00BB rmb 2 Pointer to work window table (g0077+$10)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
421 g00BD rmb 1 Current screen type for work window table
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
422 g00BE rmb 1 Topmost overlay window # when check for title bars
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
423 g00BF rmb 1 Flag for keypress while processing menu select
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
424 g00C0 rmb 2 Ptr to current path descriptor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
425 G.WindBk rmb 2 shift-clear routine vector
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
426 G.MsInit rmb 2 set mouse routine vector
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
427 G.MsSig rmb 1 mouse signal flag
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
428 G.DefPls rmb 16 Default palettes (2 repeats of 8 is default) ($C7)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
429 g00D7 rmb 9
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
430 G.KeyEnt rmb 2 entry to keydrv subroutine module ($E0)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
431 G.KeyMem rmb 8 static memory for keydrv subroutine module
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
432 G.JoyEnt rmb 2 entry to joydrv subroutine module ($EA)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
433 G.JoyMem rmb 8 static memory for joydrv subroutine module
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
434 G.SndEnt rmb 2 entry to snddrv subroutine module ($F4)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
435 G.SndMem rmb 8 static memory for snddrv subroutine module
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
436
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
437 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
438 * GrfDrv global memory data definitions
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
439 * This area sits in system block 0 from $1100 to $119E
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
440 GrfMem equ $1100 useful label used to point to mem starting below
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
441 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
442 gr0000 rmb 1 Pixel mask for 1st byte of GP line
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
443 gr0001 rmb 1 Pixel mask for last byte of a GP line
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
444 gr0002 rmb 2 Ptr to table of bit masks for colors
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
445 gr0004 rmb 1 # of bytes wide GP buffer is (including partials)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
446 gr0005 rmb 1 # pixels per byte in GP Buffer
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
447 gr0006 rmb 1 # of pixels used in 1st byte of GP buffer line
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
448 gr0007 rmb 1 # of pixels used in last byte of GP buffer line
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
449 gr0008 rmb 1 Bit mask that is common to both screen & GP buffer
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
450 gr0009 rmb 1 # bytes for width of overlay window
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
451 gr000A rmb 1 # bytes to offset to get to next line after
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
452 * overlay width has been copied
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
453 gr000B rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
454 gr000C rmb 2 Cursor address for proportional spacing?
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
455 gr000E rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
456 gr000F rmb 1 Left-based bit mask for proportional spacing?
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
457 gr0010 rmb 2 Vector for text to gfx screen (either prop. or normal)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
458 gr0012 rmb 6
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
459 gr0018 rmb 2 Working Center X coord for Circle/Ellipse
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
460 gr001A rmb 2 Working Center Y coord for Circle/Ellipse
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
461 gr001C rmb 2 Some variable for Circle/Ellipse (initially 0)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
462 gr001E rmb 2 Working Y radius value for Circle/Ellipse
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
463 gr0020 rmb 2 Arc 'clip line' X01
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
464 gr0022 rmb 2 Arc 'clip line' Y01
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
465 gr0024 rmb 2 Arc 'clip line' X02
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
466 gr0026 rmb 2 Arc 'clip line' Y02
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
467 gr0028 rmb 1 full-byte background color to FFILL on mask
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
468 gr0029 rmb 1 pixels per byte: set up by FFILL
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
469 gr002A rmb 1 Flag for FFill: 1=no error, 0=Stack overflow error
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
470 gr002B rmb 1 current Y-direction to travel in FFILL
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
471 gr002C rmb 2
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
472 gr002E rmb 2 current window table entry
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
473 gr0030 rmb 2 current screen table ptr
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
474 gr0032 rmb 1 Last block # we used for buffers
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
475 gr0033 rmb 2 Last offset we used for buffers
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
476 gr0035 rmb 1 group
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
477 gr0036 rmb 2 offset
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
478 gr0038 rmb 1 group returned (new)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
479 gr0039 rmb 1 0=Text cursor inverted off, >0 is inverted on
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
480 gr003A rmb 1 0=Graphics cursor XOR'd off,>0 is XOR'd on scrn
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
481 gr003B rmb 2 end of vars ptr?
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
482 gr003D rmb 2 Last X coordinate Graphics cursor was ON at
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
483 gr003F rmb 2 Last Y coordinate Graphics cursor was ON at
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
484 gr0041 rmb 2 Screen address for start of current gfx cursor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
485 gr0043 rmb 1 Pixel mask for start of gfx cursor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
486 gr0044 rmb 1 Block # Graphics cursor is in
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
487 gr0045 rmb 2 Offset in block Graphics cursor is in
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
488 gr0047 rmb 2 'Working' X coordinate
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
489 gr0049 rmb 2 'Working' Y coordinate
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
490 gr004B rmb 2 current X
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
491 gr004D rmb 2 current Y
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
492 gr004F rmb 2 X Size (in bytes)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
493 gr0051 rmb 2 Y Size (in bytes)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
494 gr0053 rmb 2 Horizontal radius (circle/ellipse/arc)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
495 gr0055 rmb 2 Vertical radius (circle/ellipse/arc)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
496 gr0057 rmb 1 group
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
497 gr0058 rmb 1 buffer #
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
498 gr0059 rmb 1 save switch for overlay
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
499 gr005A rmb 1 PRN
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
500 gr005B rmb 2 X coordinate of Graphics cursor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
501 gr005D rmb 2 Y coordinate of Graphics cursor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
502 gr005F rmb 1 ATD: new video mode for 24/25/28-line windows
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
503 Gr.STYMk rmb 1 STY marker
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
504 gr0061 rmb 1 foreground RGB data
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
505 gr0062 rmb 1 background RGB data
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
506 gr0063 rmb 1 bytes/row (on current screen...not window)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
507 gr0064 rmb 2 PSet vector
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
508 gr0066 rmb 2 pset offset
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
509 gr0068 rmb 2 LSet vector
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
510 gr006A rmb 2 max X co-ordinate
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
511 gr006C rmb 2 max Y co-ordinate
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
512 gr006E rmb 2 X pixel count
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
513 gr0070 rmb 2 Y pixel count
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
514 gr0072 rmb 2 Screen address of pixel we are doing
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
515 gr0074 rmb 1 Pixel mask for pixel we are doing
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
516 gr0075 rmb 2 ??? Pixel mask for last byte of GP buffer?
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
517 gr0077 rmb 2 Vector for right direction FFill
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
518 gr0079 rmb 1 bit mask for 1st pixel in byte for right dir. FFill
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
519 gr007A rmb 2 Vector for left direction FFill
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
520 gr007C rmb 1 bit mask for last pixel in byte for left dir. FFill
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
521 gr007D rmb 1 buffer block #
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
522 gr007E rmb 2 buffer offset #
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
523 gr0080 rmb 2 Buffer length (in bytes)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
524 gr0082 rmb 3 3 byte extended screen address
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
525 gr0085 rmb 2 temp
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
526 gr0087 rmb 16 grfdrv (sysmap 1) DAT image
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
527 gr0097 rmb 1 temp
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
528 gr0098 rmb 1 temp
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
529 * In ARC, 97-98 is the width of the clip line in pixels (after scaling)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
530 gr0099 rmb 2 temp
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
531 * In ARC, 99-9A is the height of the clip line in pixels (after scaling)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
532 gr009B rmb 1 counter temp
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
533 gr009C rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
534 gr009D rmb 2 offset to buffer in block
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
535 gr009F rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
536 gr00A0 rmb 1 # lines left to do of GP buffer onto screen
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
537 gr00A1 rmb 2 vector routine for (changes lots)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
538 * In ARC A1-A2 is the vector to the proper clipping routine
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
539 gr00A3 rmb 2 Vector for shifting GP buffers
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
540 gr00A5 rmb 2 Vector for shifting GP buffers (can dupe A1)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
541 gr00A7 rmb 2
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
542 gr00A9 rmb 2 NEW: Window tbl ptr for last window GRFDRV used
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
543 grBigFnt rmb 2 Flag for 224 char font/gfx mode on (0=No) V2.00a
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
544 gr00AD rmb 2 FFill:orig. start X coord|Circ/Ell saved start X
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
545 gr00AF rmb 2 FFill:orig. start Y coord|Circ/Ell saved end X
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
546 gr00B1 rmb 1 Flag in FFill: 1=1st time through, 0=not 1st time
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
547 gr00B2 rmb 1 Filled (circle,ellipse) flag 0=Not filled
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
548 *gr00B3 rmb 256-. ??? UNUSED
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
549 gr00B3 rmb 1 temp veriable grfdrv
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
550 gr00B4 rmb 1 temp veriable grfdrv
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
551 gr00B5 rmb 1 regW for grfdrv
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
552 gr00B6 rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
553 gr00B7 rmb 2
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
554 gr00B9 rmb 2 previously used in grfdrv at $B2 but not for Filled Flag
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
555 gr00BB rmb 2 previously used in grfdrv at $B4
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
556 gr00BD rmb 2 previously used in grfdrv at $B6
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
557 gr00BF rmb 256-.
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
558 * GPLoad buffer - $1200 in system block 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
559 GPBuf rmb 72 common move buffer for gpload/get/put
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
560 gb0000 equ 72 Size of get/put buffer ($48)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
561
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
562 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
563 * Window table entry structure
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
564 * These tables sit in system block 0 and there is 1 for every window init'd
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
565 * including any overlay windows.
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
566 MaxWind equ 32 maximum allowable window tables
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
567 WinBase equ $1290 base address to start of window tables
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
568 org -$10
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
569 Wt.STbl rmb 2 Screen table pointer ($FFFF=Not used) -$10
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
570 Wt.BLnk rmb 1 overlay window parent entry # ($FF=base) -$0E
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
571 Wt.LStrt rmb 2 screen logical start address -$0D
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
572 Wt.CPX rmb 1 current X coord. start -$0B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
573 Wt.CPY rmb 1 current Y coord. start -$0A
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
574 Wt.SZX rmb 1 current X size (CWArea) -$09
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
575 Wt.SZY rmb 1 current Y size (CWArea) -$08
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
576 Wt.SXFct rmb 1 X scaling factor -$07
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
577 Wt.SYFct rmb 1 Y scaling factor (0=no scaling) -$06
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
578 Wt.Cur rmb 2 cursor physical address on screen -$05
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
579 Wt.FMsk rmb 1 font bit mask (based from left) -$03
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
580 Wt.CurX rmb 2 X coord of cursor -$02
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
581 Wt.CurY rmb 2 Y Coord of cursor $00
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
582 Wt.XBCnt rmb 1 width of window (in bytes) $02
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
583 Wt.CWTmp rmb 1 bytes wide each text chr (1,2,4) $03
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
584 Wt.BRow rmb 2 bytes/text row (8x width in gfx) $04
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
585 Wt.Fore rmb 1 foreground palette # $06
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
586 Wt.Back rmb 1 background palette # $07
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
587 Wt.Attr rmb 1 default attributes (FUTTTBBB) $08
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
588 Wt.BSW rmb 1 character BSW switches $09
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
589 Wt.LSet rmb 1 LSet type $0A
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
590 Wt.FBlk rmb 1 Font memory block # $0B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
591 Wt.FOff rmb 2 Font offset in block $0C
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
592 Wt.PBlk rmb 1 PSet memory block # $0E
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
593 Wt.POff rmb 2 PSet offset in block $0F
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
594 Wt.OBlk rmb 1 Overlay memory block # $11
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
595 Wt.OOff rmb 2 Overlay offset in block $12
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
596 Wt.LVec rmb 2 LSet vector $14
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
597 Wt.PVec rmb 2 PSet vector $16
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
598 Wt.GBlk rmb 1 GCursor memory block # $18
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
599 Wt.GOff rmb 2 GCursor offset in block $19
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
600 Wt.MaxX rmb 2 Maximum X cord. (0-79,0-639) $1B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
601 Wt.MaxY rmb 2 Maximum Y cord. (0-24,0-191) $1D
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
602 Wt.BLen rmb 2 bytes left in GPLoad block below $1F
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
603 Wt.NBlk rmb 1 memory block # for next GPLoad $21
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
604 Wt.NOff rmb 2 Offset in block for next GPLoad $22
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
605 Wt.LStDf rmb 2 screen logical start default $24
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
606 * NOTE: The following default settings are what the window was initialized
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
607 * with, and thus are the MAXIMUM start/size the window can handle
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
608 * until it is restarted (DWEnd & DWSet)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
609 * They also appear to be used in WindInt to determine the coords &
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
610 * sizes for control+content regions
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
611 Wt.DfCPX rmb 1 default X cord. start $26
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
612 Wt.DfCPY rmb 1 default Y cord. start $27
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
613 Wt.DfSZX rmb 1 default X size $28
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
614 Wt.DfSZY rmb 1 default Y size $29
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
615 Wt.Res rmb 6 unused $2A-$2F
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
616 Wt.Siz equ .+$10
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
617
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
618 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
619 * Screen table entrys
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
620 * These tables sit in system block 0 base=$1A80
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
621
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
622 STblMax equ 16 Maximum number of screen tables
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
623 STblBse equ $1A80 base address of screen tables
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
624 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
625 St.Sty rmb 1 Screen type $00
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
626 St.SBlk rmb 1 Ram block start # $01
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
627 St.LStrt rmb 2 Screen logical start (for GIME) $02
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
628 St.BRow rmb 1 Bytes per row $04
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
629 St.Brdr rmb 1 Border palette register # $05
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
630 St.Fore rmb 1 Foreground palette register # $06
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
631 St.Back rmb 1 Background palette register # $07
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
632 St.ScSiz rmb 1 screen size: 24..28 lines $08
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
633 St.Res rmb 7 UNUSED??? $09
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
634 * NOTE: SHOULD USE ONE OF THESE UNUSED BYTES TO KEEP THE # OF DEVICE WINDOW
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
635 * TABLES THAT ARE USING THIS SCREEN TABLE. DWSET & DWEND WOULD KEEP TRACK OF
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
636 * THESE, AND THE WINDINT TITLE BAR ROUTINE WOULD CHECK IT. IF IT IS ONLY 1,
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
637 * IT WON'T BOTHER CHANGING THE TITLE BAR WHEN SELECTING WINDOWS
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
638 St.Pals rmb 16 Palette register contents $10
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
639 St.Siz equ .
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
640
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
641 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
642 * Graphics buffer tables
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
643 * They contain a 20 byte header (shown below), followed by the raw pixel
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
644 * data.
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
645 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
646 Grf.Bck rmb 1 back block link # $00
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
647 Grf.Off rmb 2 back block header offset $01
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
648 Grf.Grp rmb 1 group # $03
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
649 Grf.Buff rmb 1 buffer # $04
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
650 Grf.BSz rmb 2 buffer size (not including header) $05
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
651 Grf.XSz rmb 2 X size (in pixels) $07
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
652 Grf.YSz rmb 2 Y size (in pixels/bytes) $09
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
653 Grf.XBSz rmb 1 X size in bytes $0B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
654 Grf.LfPx rmb 1 # pixels used in first byte of line $0C
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
655 Grf.RtPx rmb 1 # pixels used in last byte of line $0D
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
656 Grf.STY rmb 1 Screen type buffer intended for $0E
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
657 Grf.NBlk rmb 1 number blocks used $0F
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
658 Grf.Pal rmb 16 Copy of palette registers? $10
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
659 Grf.Siz equ . $20
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
660
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
661 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
662 * GFX tables (1 for each window, 18 ($12) bytes each) pointed to by
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
663 * $1075-$0176
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
664 * GRFINT only uses gt0001-gt0004, the rest is exclusive to WINDINT
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
665 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
666 Gt.WTyp rmb 1 WindInt window type (Framed, Scroll Bar, etc.) $00
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
667 Gt.GXCur rmb 2 X coord of graphics cursor $01
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
668 Gt.GYCur rmb 2 Y coord of graphics cursor $03
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
669 Gt.DPtr rmb 2 Ptr to WindInt window descriptor $05
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
670 Gt.FClr rmb 1 Foreground color $07
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
671 Gt.BClr rmb 1 Background color $08
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
672 Gt.FMsk rmb 1 Foreground mask $09
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
673 Gt.BMsk rmb 1 Background mask $0A
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
674 Gt.GBlk rmb 1 Block # of graphics cursor $0B
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
675 Gt.GOff rmb 2 Offset into block of graphics cursor $0C
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
676 Gt.Proc rmb 1 Process # of window creator $0E
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
677 Gt.PBlk rmb 1 Process descriptor block # of creator $0F
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
678 Gt.Res rmb 2 ??? RESERVED ??? $10
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
679 GTabSz equ .
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
680
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
681 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
682 * This table is located in the graphics table memory and is offset from
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
683 * graphics table pointer stored at $1075-$1076. This is used exclusively by
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
684 * WindInt.
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
685 * NOTE: USING UNUSED BYTES IN CC3 GLOBAL MEM, SET UP SEPARATE PTRS FOR EACH
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
686 * OF THE BELOW SO WE CAN SPEED UP ACCESS BY NOT HAVING TO DO A LOAD/LEAx
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
687 * COMBINATION EVERY TIME
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
688 org $0240
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
689 rmb WN.SIZ copy of last accessed window descriptor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
690 rmb MN.SIZ copy of last accessed menu descriptor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
691 rmb MI.SIZ copy of last accessed item descriptor
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
692 rmb 65 menu handling table (16 entrys of 4 bytes)
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
693
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
694 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
695 * WindInt menu handling table entry definition
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
696 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
697 MnuXNum rmb 1 menu #
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
698 MnuXStrt rmb 1 X start text co-ordinate
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
699 MnuXEnd rmb 1 X end text co-ordinate
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
700 rmb 1 unused?
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
701 MnuHSiz equ .
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
702
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
703 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
704 * Character binary switches
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
705 TChr equ %10000000 transparent characters
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
706 Under equ %01000000 underline characters
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
707 Bold equ %00100000 bold characters
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
708 Prop equ %00010000 proportional spacing of characters
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
709 Scale equ %00001000 automatic window scaling
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
710 Invers equ %00000100 inverse characters
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
711 NoCurs equ %00000010 no cursor display
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
712 Protect equ %00000001 device window protection
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
713
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
714 *****************************************************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
715 * Screen types (high bit set=hardware text, else graphics) in GRFDRV
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
716 Current equ $ff Current screen
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
717 * equ 1 640x200x2
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
718 * equ 2 320x200x4
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
719 * equ 3 640x200x4
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
720 * equ 4 320x200x16
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
721 * equ $85 80 column text
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
722 * equ $86 40 column text
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
723
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
724 *************************************
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
725 * Window default palette color codes
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
726 *
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
727 org 0
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
728 White. rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
729 Blue. rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
730 Black. rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
731 Green. rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
732 Red. rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
733 Yellow. rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
734 Magenta. rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
735 Cyan. rmb 1
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
736
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
737 ENDC
83453a4c9e51 Addition of cciodefs and cc3iodefs
boisy
parents:
diff changeset
738