annotate defs/systype @ 1386:2415d285db30

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