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