annotate docs/nitros9guide/display.appendix @ 321:2c0ddf807efa

Made some changes
author boisy
date Tue, 23 Jul 2002 23:43:29 +0000
parents bb3e4d64103a
children f9c66ad345d1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
146
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
1 <appendix>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
2 <title>Display System Functions</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
3
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
4 <section>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
5 <title>The Video Display</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
6 <para>
149
bb3e4d64103a Made the word "Dragon" an entity, thereby making it replacable with "Color"
roug
parents: 146
diff changeset
7 &vendor; OS-9 allows the video display to be used in
146
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
8 alphanumeric, semigraphic, and graphics modes. There are many
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
9 built-in functions to control the display, which are activated by
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
10 used of various ASCII control character. Thus, these functions are
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
11 available for use by software written in any language using standard
149
bb3e4d64103a Made the word "Dragon" an entity, thereby making it replacable with "Color"
roug
parents: 146
diff changeset
12 output statements (such as &quot;PRINT&quot; in BASIC). The &make;
bb3e4d64103a Made the word "Dragon" an entity, thereby making it replacable with "Color"
roug
parents: 146
diff changeset
13 Computer's Basic09
146
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
14 language has a Graphics Interface Module that can automatically
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
15 generate these codes using Basic09 RUN statements.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
16 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
17 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
18 The display system has two display modes: Alphanumeric
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
19 (&quot;Alpha&quot;) mode and Graphics mode. The Alphanumeric mode also
149
bb3e4d64103a Made the word "Dragon" an entity, thereby making it replacable with "Color"
roug
parents: 146
diff changeset
20 includes &quot;semigraphic&quot; box-graphics. The &make; Computer's display
146
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
21 system uses a separate - memory area for each display mode so
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
22 operations on the Alpha display do not affect the Graphics display,
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
23 and visa-versa. Either display can be selected under software
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
24 control.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
25 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
26 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
27 8-bit characters sent to the display system are interpreted
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
28 according to their numerical value, as shown in the chart below.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
29 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
30
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
31 <informaltable frame="none">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
32 <tgroup cols="2">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
33 <colspec colwidth="2in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
34 <colspec colwidth="3in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
35 <thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
36 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
37 <entry>Character Range (Hex)</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
38 <entry>Mode/Used For</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
39 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
40 </thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
41 <tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
42 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
43 <entry>00 - 0E</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
44 <entry>Alpha Mode - cursor and screen control</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
45 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
46 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
47 <entry>0F - 1B</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
48 <entry>Graphics Mode - drawing and screen control</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
49 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
50 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
51 <entry>1C - 20</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
52 <entry>Not used</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
53 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
54 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
55 <entry>20 - SF</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
56 <entry>Alpha Mode - upper case characters</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
57 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
58 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
59 <entry>60 - 7F</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
60 <entry>Alpha Mode - lower case characters</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
61 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
62 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
63 <entry>80 - FF</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
64 <entry>Alpha Mode - Semigraphic patterns</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
65 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
66 </tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
67 </tgroup>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
68 </informaltable>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
69
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
70
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
71 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
72 The graphics and alphanumeric functions are handled by the OS-9
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
73 device driver module called &quot;CCIO&quot;.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
74 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
75 </section>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
76 <section>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
77 <title>Alpha Mode Display</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
78 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
79 This is the &quot;standard&quot; operational mode. It is used to display
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
80 alphanumeric characters and semigraphic box graphics, and simulates
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
81 the operation of a typical computer terminal with functions for
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
82 scrolling, cursor positioning, clear screen, line delete, etc.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
83 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
84 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
85 Each 8-bit character is assumed to be an ASCII character and is
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
86 displayed if its high order bit (sign bit) is cleared. Lower case
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
87 letters are displayed in reverse video. If the high order bit of
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
88 the character is set it is assumed to be a &quot;Semigraphic 6&quot; graphics
149
bb3e4d64103a Made the word "Dragon" an entity, thereby making it replacable with "Color"
roug
parents: 146
diff changeset
89 box. See the &make; Computer manual for an explanation of semigraphics
146
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
90 functions.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
91 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
92
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
93 <table frame="none">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
94 <title>Alpha Mode Command Codes</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
95 <tgroup cols="2">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
96 <colspec colwidth="0.6in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
97 <colspec colwidth="4in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
98 <thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
99 <row rowsep=1>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
100 <entry>Control Code</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
101 <entry>Name/Function</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
102 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
103 </thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
104 <tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
105 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
106 <entry>01</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
107 <entry>HOME - return cursor to upper left hand corner of screen</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
108 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
109 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
110 <entry>02</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
111 <entry>CURSOR XY - move cursor to character X of line Y. The
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
112 binary value minus 32 of the two characters following
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
113 the control character are used as the X and Y
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
114 coordinates. For example, to position the cursor at character 5 of line 10,
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
115 you must give X=37 and Y42</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
116 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
117 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
118 <entry>03</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
119 <entry>ERASE LINE - erases all characters on the cursor's line.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
120 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
121 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
122 <entry>06</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
123 <entry>CURSOR RIGHT - move cursor right one character position</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
124 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
125 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
126 <entry>08</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
127 <entry>CURSOR LEFT - move cursor left one character position</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
128 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
129 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
130 <entry>09</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
131 <entry>CURSOR UP - move cursor up one line</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
132 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
133 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
134 <entry>10</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
135 <entry>CURSOR DOWN (linefeed) move cursor down one line</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
136 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
137 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
138 <entry>12</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
139 <entry>CLEAR SCREEN - erase entire screen and home cursor</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
140 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
141 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
142 <entry>13</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
143 <entry>RETURN - return cursor to leftmost character of line</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
144 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
145 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
146
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
147 <entry>14</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
148 <entry>DISPLAY ALPHA - switch screen from graphic mode to alpha
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
149 numeric mode</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
150 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
151 </tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
152 </tgroup>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
153 </table>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
154
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
155 </section>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
156 <section>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
157 <title>Graphics Mode Display</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
158 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
159 This mode is used to display high-resolution 2- or 4-color
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
160 graphics, and it includes commands to: set color; plot and erase
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
161 individual points; draw and erase lines; position the graphics
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
162 cursor; and draw circles.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
163 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
164 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
165 The DISPLAY GRAPHICS command must be executed before any other
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
166 graphics mode command is used. It causes the graphics screen to be
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
167 displayed and sets a current display format and color. The Li.u.t
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
168 time the DISPLAY GRAPHICS command is given, a 6144 byte display
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
169 memory is allocated by OS-9, so there must be at least this much
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
170 continuous free memory available (the OS-9 &quot;MFREE&quot; command can be
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
171 used to check free memory). This memory is retained until the END
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
172 GRAPHICS command is given, even if the program that initiated
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
173 Graphics mode finishes, so it important that the END GRAPHICS
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
174 command be used to give up the display memory when Graphics mode is
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
175 no longer needed.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
176 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
177 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
178 Graphics mode supports two basic formats: Two-Color which has
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
179 256 horizontal by 192 vertical points (G6R mode); and Four Color
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
180 which has 128 horizontal by 192 vertical points (G6C mode). Two
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
181 color sets are available in either mode. Regardless of the
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
182 resolution of the format selected, all Graphics mode commands use a
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
183 256 by 192 point coordinate system. The X and Y coordinates are
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
184 always positive numbers which assume that point 0,0 is the lower
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
185 lefthand corner of the screen.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
186 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
187 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
188 An invisible Graphics Cursor is used by many command to reduce
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
189 the amount of output required to generate graphics. This cursor can
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
190 be explicitly set to any point using the SET GRAPHICS CURSOR
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
191 command. Also, all other commands that include X,Y coordinates
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
192 (such as SET POINT) move the graphics cursor to the specified
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
193 position.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
194 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
195 <table frame="none">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
196 <title>Graphics Mode Selection Codes</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
197 <tgroup cols="2">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
198 <colspec colwidth="1in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
199 <colspec colwidth="3in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
200 <thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
201 <row rowsep=1>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
202 <entry>Code</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
203 <entry>Format</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
204 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
205 </thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
206 <tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
207 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
208 <entry>00</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
209 <entry>256 x 192 two-color graphics</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
210 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
211 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
212 <entry>01</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
213 <entry>128 x 192 four-color graphics</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
214 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
215 </tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
216 </tgroup>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
217 </table>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
218
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
219
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
220 <table frame="none">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
221 <title>Color Set and Current Foreground Color Selection Codes</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
222 <tgroup cols="6">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
223 <colspec colname="c1" colwidth="0.5in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
224 <colspec colname="c2" colwidth="0.4in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
225 <colspec colname="c3" colwidth="1in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
226 <colspec colname="c4" colwidth="1in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
227 <colspec colname="c5" colwidth="1in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
228 <colspec colname="c6" colwidth="1in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
229 <thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
230 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
231 <entry align="center" namest="c3" nameend="c4">Two Color Format</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
232 <entry align="center" namest="c5" nameend="c6">Four Color Format</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
233 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
234 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
235 <entry align="center" namest="c2">Char</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
236 <entry namest="c3">Background</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
237 <entry namest="c4">Foreground</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
238 <entry namest="c5">Background</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
239 <entry namest="c6">Foreground</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
240 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
241 </thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
242 <tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
243 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
244 <entry morerows=3 valign=middle>Color Set 1</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
245 <entry align="center">00</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
246 <entry align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
247 <entry align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
248 <entry align="left">Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
249 <entry align="left">Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
250 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
251 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
252 <entry align="center">01</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
253 <entry align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
254 <entry align="left">Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
255 <entry align="left">Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
256 <entry align="left">Yellow</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
257 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
258 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
259 <entry align="center">02</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
260 <entry namest="c5" align="left">Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
261 <entry align="left">Blue</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
262 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
263 <row rowsep=1>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
264 <entry align="center">03</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
265 <entry namest="c5" align="left">Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
266 <entry align="left">Red</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
267 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
268 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
269 <entry morerows=3 valign=middle>Color Set 2</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
270 <entry align="center">04</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
271 <entry align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
272 <entry align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
273 <entry align="left">Buff</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
274 <entry align="left">Buff</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
275 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
276 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
277 <entry align="center" namest="c2">05</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
278 <entry align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
279 <entry align="left">Buff</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
280 <entry align="left">Buff</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
281 <entry align="left">Cyan</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
282 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
283 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
284 <entry align="center" namest="c2">06</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
285 <entry namest="c5" align="left">Buff</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
286 <entry align="left">Magenta</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
287 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
288 <row rowsep=1>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
289 <entry align="center" namest="c2">07</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
290 <entry namest="c5" align="left">Buff</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
291 <entry align="left">Orange</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
292 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
293 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
294 <entry morerows=3 valign=middle>Color Set 3*</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
295 <entry align="center">08</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
296 <entry namest="c5" align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
297 <entry align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
298 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
299 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
300 <entry align="center" namest="c2">09</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
301 <entry namest="c5" align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
302 <entry align="left">Dark Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
303 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
304 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
305 <entry align="center" namest="c2">10</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
306 <entry namest="c5" align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
307 <entry align="left">Med. Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
308 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
309 <row rowsep=1>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
310 <entry align="center" namest="c2">11</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
311 <entry namest="c5" align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
312 <entry align="left">Light Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
313 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
314 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
315 <entry morerows=3 valign=middle>Color Set 4*</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
316 <entry align="center">12</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
317 <entry namest="c5" align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
318 <entry align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
319 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
320 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
321 <entry align="center" namest="c2">13</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
322 <entry namest="c5" align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
323 <entry align="left">Green</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
324 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
325 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
326 <entry align="center" namest="c2">14</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
327 <entry namest="c5" align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
328 <entry align="left">Red</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
329 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
330 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
331 <entry align="center" namest="c2">15</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
332 <entry namest="c5" align="left">Black</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
333 <entry align="left">Buff</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
334 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
335 </tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
336 </tgroup>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
337 </table>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
338
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
339 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
340 * Color sets 3 and 4 not available on PAL video system (European)
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
341 models. These color sets work only with NTSC (U.S., Canada, Japan)
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
342 models.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
343 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
344
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
345 <table frame="none">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
346 <title>Graphics Mode Control Commands</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
347 <tgroup cols="2">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
348 <colspec colname="c1" colwidth="0.8in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
349 <colspec colname="c1" colwidth="4in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
350 <thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
351 <row rowsep="1">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
352 <entry>Control Code</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
353 <entry>Name/Function</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
354 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
355 </thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
356 <tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
357 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
358 <entry>15</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
359 <entry>DISPLAY GRAPHICS - switches screen to graphics mode.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
360 This command must be given before any other
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
361 graphics commands are used. The first time this command
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
362 is given, a 6K byte display buffer is assigned. If 6K of
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
363 contiguous memory is not available an error is returned.
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
364 This command is followed by two characters which specify
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
365 the graphics mode and current color/color set, respectively.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
366 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
367 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
368 <entry>16</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
369 <entry>PRESET SCREEN - presets entire screen to color code
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
370 passed in next character.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
371 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
372 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
373 <entry>17</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
374 <entry>SET COLOR - selects foreground color (and color set)
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
375 passed in next character, but does not change graphics
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
376 mode.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
377 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
378 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
379 <entry>18</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
380 <entry>QUIT GRAPHICS - disables graphics mode and returns the
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
381 6K byte graphics memory area to OS-9 for other use, and
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
382 switches to alpha mode.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
383 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
384 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
385 <entry>19</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
386 <entry>ERASE GRAPHICS - erases all points to background color
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
387 and homes graphics cursor to the desired position.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
388 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
389 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
390 <entry>20</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
391 <entry>HOME GRAPHICS CURSOR - moves graphics cursor to coordinates
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
392 0,0 (lower left hand corner).</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
393 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
394 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
395 <entry>21</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
396 <entry>SET GRAPHICS CURSOR - moves graphics cursor to given
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
397 coordinates X,Y. The binary value of the two characters that immediately
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
398 follow are used as the X and Y values, respectively.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
399 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
400 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
401 <entry>22</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
402 <entry>DRAW LINE - draws a line of the current foreground
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
403 color from the current graphics cursor position to the
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
404 given X,Y coordinates. The binary value of the two
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
405 characters that immediately follow are used as the X
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
406 and Y values, respectively. The graphics cursor is
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
407 moved to the end point of the line.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
408 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
409 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
410 <entry>23</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
411 <entry>ERASE LINE - same as DRAW LINE except the line is
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
412 &quot;drawn&quot; in the current background color, thus erasing
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
413 the line.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
414 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
415 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
416 <entry>24</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
417 <entry>SET POINT - sets the pixel-at point X,Y to the current
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
418 foreground color. The binary value of the two
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
419 characters that immediately follow are used as the x
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
420 and Y values, respectively. The graphics cursor is
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
421 moved to the point Set.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
422 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
423 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
424 <entry>25</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
425 <entry>ERASE POINT - same as DRAW POINT except the point is
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
426 &quot;drawn&quot; in the current background color, thus erasing
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
427 the point.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
428 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
429 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
430 <entry>26</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
431 <entry>DRAW CIRCLE - draws a circle of the current foreground
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
432 color with its center at the current graphics cursor
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
433 position using a radius R which is obtained using the
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
434 binary value of the next character. The graphics
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
435 cursor position is not affected by this command.</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
436 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
437 </tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
438 </tgroup>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
439 </table>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
440
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
441 </section>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
442 <section>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
443 <title>Get Status Commands</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
444 <para>
149
bb3e4d64103a Made the word "Dragon" an entity, thereby making it replacable with "Color"
roug
parents: 146
diff changeset
445 The &make; Computer I/O driver includes OS-9 Get Status
146
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
446 commands that return the display status and joystick values,
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
447 respectively. These are accessable via the Basic09 Graphics
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
448 Interface Module, or by the assembly language system calls listed
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
449 below:
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
450 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
451 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
452 GET DISPLAY STATUS:
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
453 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
454 <informaltable frame="none">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
455 <tgroup cols="2">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
456 <colspec colwidth="2in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
457 <colspec colwidth="3in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
458 <tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
459 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
460 <entry>Calling Format</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
461 <entry><literallayout class="Monospaced">lda #1 (path number)
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
462 ldb #SS.DStat (Getstat code $12)
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
463 os9 I$GSTT call OS-9</literallayout></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
464 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
465 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
466 <entry>Passed</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
467 <entry>nothing</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
468 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
469 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
470 <entry>Returns</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
471 <entry><literallayout>X = address of graphics display memory
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
472 Y = graphics cursor address x=MSB y =LSB
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
473 A = color code of pixel at cursor address</literallayout></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
474 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
475 </tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
476 </tgroup>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
477 </informaltable>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
478 <para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
479 GET JOYSTICK VALUES:
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
480 </para>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
481 <informaltable frame="none">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
482 <tgroup cols="2">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
483 <colspec colwidth="2in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
484 <colspec colwidth="3in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
485 <tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
486 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
487 <entry>Calling Format</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
488 <entry><literallayout class="Monospaced">lda #1 (path number)
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
489 ldb #SS.Joy (Getstat code $13)
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
490 os9 I$GSTT call OS-9</literallayout></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
491 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
492 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
493 <entry>Passed</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
494 <entry>X = 0 for right joystick; 1 for left joystick</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
495 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
496 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
497 <entry>Returns</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
498 <entry><literallayout>X = selected joystick x value (0-63)
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
499 Y = selected joystick y value (0-63)
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
500 A = $FF if fire button on; $00 if off</literallayout></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
501 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
502 </tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
503 </tgroup>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
504 </informaltable>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
505
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
506 <table frame="none">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
507 <title>Display Control Codes Condensed Summary</title>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
508 <tgroup cols="4">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
509 <colspec colwidth="0.9in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
510 <colspec colwidth="0.9in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
511 <colspec colwidth="0.9in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
512 <colspec colwidth="2.5in">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
513 <thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
514 <row rowsep="1">
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
515 <entry>1st Byte</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
516 <entry>2nd Byte</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
517 <entry>3rd Byte</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
518 <entry>Function</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
519 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
520 </thead>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
521 <tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
522 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
523 <entry>00</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
524 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
525 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
526 <entry>Null</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
527 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
528 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
529 <entry>01</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
530 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
531 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
532 <entry>Home Alpha Cursor</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
533 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
534 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
535 <entry>02</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
536 <entry>Column+32</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
537 <entry>Row+32</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
538 <entry>Position Alpha Cursor</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
539 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
540 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
541 <entry>03</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
542 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
543 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
544 <entry>Erase Line</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
545 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
546 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
547 <entry>06</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
548 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
549 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
550 <entry>Cursor Right</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
551 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
552 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
553 <entry>08</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
554 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
555 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
556 <entry>Cursor Left</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
557 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
558 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
559 <entry>09</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
560 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
561 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
562 <entry>Cursor Up</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
563 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
564 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
565 <entry>10</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
566 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
567 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
568 <entry>Cursor Down</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
569 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
570 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
571 <entry>12</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
572 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
573 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
574 <entry>Clear Screen</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
575 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
576 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
577 <entry>13</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
578 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
579 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
580 <entry>Carriage Return</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
581 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
582 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
583 <entry>14</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
584 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
585 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
586 <entry>Select Alpha Mode</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
587 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
588 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
589 <entry>15</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
590 <entry>Mode</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
591 <entry>Color Code</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
592 <entry>Select Graphics Mode</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
593 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
594 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
595 <entry>16</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
596 <entry>Color Code</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
597 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
598 <entry>Preset Screen</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
599 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
600 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
601 <entry>17</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
602 <entry>Color Code</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
603 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
604 <entry>Select Color</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
605 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
606 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
607 <entry>18</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
608 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
609 <entry>Quit Graphics Mode</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
610 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
611 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
612 <entry>19</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
613 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
614 <entry>Erase Screen</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
615 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
616 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
617 <entry>20</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
618 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
619 <entry>Home Graphics Cursor</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
620 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
621 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
622 <entry>21</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
623 <entry>X Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
624 <entry>Y Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
625 <entry>Move Graphics Cursor</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
626 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
627 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
628 <entry>22</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
629 <entry>X Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
630 <entry>Y Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
631 <entry>Draw Line to X/Y</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
632 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
633 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
634 <entry>23</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
635 <entry>X Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
636 <entry>Y Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
637 <entry>Erase Line to X/Y</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
638 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
639 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
640 <entry>24</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
641 <entry>X Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
642 <entry>Y Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
643 <entry>Set Point at X/Y</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
644 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
645 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
646 <entry>25</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
647 <entry>X Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
648 <entry>Y Coord</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
649 <entry>Clear Point at X/Y</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
650 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
651 <row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
652 <entry>26</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
653 <entry>Radius</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
654 <entry></entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
655 <entry>Draw Circle</entry>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
656 </row>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
657 </tbody>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
658 </tgroup>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
659 </table>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
660
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
661 </section>
88ae6ed51be6 More splitups.
roug
parents:
diff changeset
662 </appendix>