annotate 3rdparty/utils/view/view_table.a @ 3250:13737f3608e6

Updated Level 1 VTIO and CoVDG for updates to do CoCoVGA. Updated Level 1 CoCo1 area makefile's to produce binaries and disk images needed for the CoCoVGA video output.
author David Ladd <drencor-xeen@users.sourceforge.net>
date Wed, 28 Mar 2018 21:20:31 -0500
parents 37fd74e6fad8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1706
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
1 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
2 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
3 * Table to drive command line parser. The routines to process individual
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
4 * options are also in this file.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
5 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
6 * Three global symbols:
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
7 * PTable: options table
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
8 * DefFormat: Set up Default format (VEF)
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
9 * Help: Give usage message.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
10 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
11 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
12 ifp1
1912
37fd74e6fad8 Now assembles with rma, uses os9defs.d in c3
boisy
parents: 1777
diff changeset
13 use os9defs.d
1706
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
14 endc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
15
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
16 StdOut equ 1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
17 StdErr equ 2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
18
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
19 psect view_table_a,0,0,0,0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
20
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
21
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
22 * Options parsing table.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
23 * Each entry: null-terminated option string,
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
24 * one-byte option code,
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
25 * Lbra instruction to subroutine to process that option.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
26 * The subroutine is called with the option code in register A, and
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
27 * X points to the first byte on the command line after the option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
28 * (for use in parsing arguments to options).
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
29 * This simplifies the handling of format codes, in particular.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
30 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
31 * In order to prevent incorrect matches, longer options should occur
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
32 * earlier in the table, since the matching code will match the first
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
33 * legal option that matches the first part of the given option.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
34 * i.e. if "opt" occurs before "opt1", then "opt1" will never get
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
35 * a match
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
36 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
37 PTable:
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
38 fcc "formats" -formats
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
39 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
40 lbra ShowFormats
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
41 fcc "savemge" -savemge
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
42 fcb 0,MGEFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
43 lbra SetSave
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
44 fcc "save640" -save640
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
45 fcb 0,MGE640Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
46 lbra SetSave
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
47 fcc "savevef" -savevef
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
48 fcb 0,VEFFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
49 lbra SetSave
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
50 fcc "savecm3" -savecm3
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
51 fcb 0,CM3Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
52 lbra SetSave
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
53 fcc "signal" -signal
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
54 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
55 lbra SetSignal
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
56 fcc "nobuff" -nobuff forces a very small buffer
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
57 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
58 lbra NoBuff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
59 fcc "save" -save (VEF Squashed)
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
60 fcb 0,VEFSqFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
61 lbra SetSave
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
62 fcc "small" -small
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
63 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
64 lbra SetSize
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
65 fcc "large" -large
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
66 fcb 0,1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
67 lbra SetSize
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
68 fcc "huge" -huge
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
69 fcb 0,2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
70 lbra SetSize
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
71 fcc "sml" -sml
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
72 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
73 lbra SetSize
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
74 fcc "big" -big
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
75 fcb 0,1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
76 lbra SetSize
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
77 fcc "lrg" -lrg
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
78 fcb 0,1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
79 lbra SetSize
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
80 fcc "maxcmp" -maxcmp
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
81 fcb 0,MAXCMPFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
82 lbra SetMAXCMP
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
83 fcc "pixcmp" -pixcmp
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
84 fcb 0,MAXCMPFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
85 lbra SetMAXCMP
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
86 fcc "artcmp" -artcmp
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
87 fcb 0,ARTCMPFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
88 lbra SetMAXCMP
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
89 fcc "pix256" -pix256 (DS69B 256x256 format)
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
90 fcb 0,PIX256Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
91 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
92 fcc "pix128" -pix128 (DS69B 128x128 format)
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
93 fcb 0,PIX128Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
94 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
95 fcc "pix" -pix (Note: _must_ occur after pix256 & pix128)
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
96 fcb 0,PIXFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
97 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
98 fcc "vef" -vef
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
99 fcb 0,1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
100 lbra SetVF only 1 picture VEF format.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
101 fcc "vf2" -vf2 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
102 fcb 0,2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
103 lbra SetVF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
104 fcc "vf3" -vf3 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
105 fcb 0,3
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
106 lbra SetVF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
107 fcc "vf4" -vf4 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
108 fcb 0,4
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
109 lbra SetVF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
110 fcc "vf5" -vf5 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
111 fcb 0,5
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
112 lbra SetVF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
113 fcc "vf6" -vf6
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
114 fcb 0,6
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
115 lbra SetVF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
116 fcc "vf7" -vf7
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
117 fcb 0,7
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
118 lbra SetVF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
119 fcc "vf8" -vf8
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
120 fcb 0,8
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
121 lbra SetVF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
122 fcc "vf9" -vf9
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
123 fcb 0,9
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
124 lbra SetVF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
125 fcc "mge" -mge option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
126 fcb 0,MGEFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
127 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
128 fcc "cm3" -cm3 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
129 fcb 0,CM3Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
130 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
131 fcc "640" -640 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
132 fcb 0,MGE640Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
133 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
134 fcc "clp" -clp option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
135 fcb 0,CLPFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
136 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
137 fcc "pub" -pub option (Home Publisher ClipArt format)
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
138 fcb 0,PUBFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
139 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
140 fcc "img" -img option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
141 fcb 0,IMGFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
142 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
143 fcc "rat" -rat option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
144 fcb 0,RATFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
145 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
146 fcc "art" -art option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
147 fcb 0,ARTFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
148 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
149 fcc "bin" -bin same as -max
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
150 fcb 0,MAXFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
151 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
152 fcc "max" -max option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
153 fcb 0,MAXFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
154 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
155 fcc "p00" -p00 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
156 fcb 0,P00Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
157 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
158 fcc "p01" -p01 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
159 fcb 0,P01Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
160 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
161 fcc "p10" -p10 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
162 fcb 0,P10Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
163 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
164 fcc "p11" -p11 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
165 fcb 0,P11Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
166 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
167 fcc "p20" -p20 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
168 fcb 0,P20Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
169 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
170 fcc "p21" -p21 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
171 fcb 0,P21Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
172 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
173 fcc "p30" -p30 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
174 fcb 0,P30Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
175 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
176 fcc "p31" -p31 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
177 fcb 0,P31Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
178 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
179 fcc "p40" -p40 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
180 fcb 0,P40Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
181 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
182 fcc "p41" -p41 option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
183 fcb 0,P41Format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
184 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
185 fcc "rle" -rle option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
186 fcb 0,RLEFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
187 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
188 fcc "mac" -mac option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
189 fcb 0,MACFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
190 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
191 fcc "mcp" -mcp option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
192 fcb 0,MACFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
193 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
194 fcc "gifbw" -gifbw option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
195 fcb 0,GIFBWFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
196 lbra SetGIF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
197 fcc "bwgif" -bwgif option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
198 fcb 0,GIFBWFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
199 lbra SetGIF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
200 fcc "gbw" -gbw option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
201 fcb 0,GIFBWFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
202 lbra SetGIF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
203 fcc "gif" -gif option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
204 fcb 0,GIFFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
205 lbra SetGIF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
206 fcc "stp" -stp is synonym for -st, for MultiVue
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
207 fcb 0,STFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
208 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
209 fcc "st" -st option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
210 fcb 0,STFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
211 lbra SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
212 fcc "t" -t# Set screen to this type.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
213 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
214 lbra Settype
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
215 fcc "s" -s Use same screen
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
216 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
217 lbra Setsame
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
218 fcc "c" -c Enable color cycling
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
219 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
220 lbra Setcycle
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
221 fcc "f" -f Fit on one screen
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
222 fcb 0,0 Now is a synonym for -small
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
223 lbra SetSize
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
224 fcc "y" -y# Skip this many lines at top.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
225 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
226 lbra Setskip
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
227 fcc "x" -x# Skip this many columns at left
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
228 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
229 lbra Setcols
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
230 fcc "help" -help Give help message
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
231 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
232 lbra Help
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
233 fcc "h" -h Give help message
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
234 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
235 lbra Help
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
236 fcc "?" -? Give help message
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
237 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
238 lbra Help
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
239 fcc "q" -q# Quit after this many seconds
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
240 fcb 0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
241 lbra Quit
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
242 * Additional options here
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
243 fcb 0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
244
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
245 Help:
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
246 pshs x
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
247 leax Usage,pcr
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
248 lbsr O_Write
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
249 ldb #1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
250 os9 F$Exit
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
251 puls x,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
252
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
253 ShowFormats
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
254 pshs x
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
255 leax Formats,pcr -formats exits after message.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
256 lbsr O_Write
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
257 ldb #1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
258 os9 F$Exit
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
259 puls x,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
260
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
261
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
262 ***********************
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
263 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
264 * Subroutines to process specific options
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
265 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
266 ***********************
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
267 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
268 * Default Format sets VEF format.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
269 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
270 DefFormat:
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
271 tst <format If format already set, ignore.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
272 bne SetVEF1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
273 lda #1 One-picture VEF is default.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
274 lbsr SetVF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
275 SetVEF1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
276 rts
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
277
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
278 * -t option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
279 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
280 Settype
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
281 lbsr Getnum Get argument, check for validity
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
282 cmpb #5
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
283 blo Settype1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
284 cmpb #8
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
285 bhi Settype1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
286
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
287 lda <type Has it already been set?
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
288 cmpa #5
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
289 blo Settype0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
290 cmpa #8
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
291 bls Settype1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
292 Settype0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
293 stb <type All okay, set it.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
294 Settype1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
295 rts
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
296
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
297 * -s option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
298 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
299 Setsame
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
300 lda #$FF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
301 sta <Samescreen
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
302 rts
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
303
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
304 * Size options
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
305 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
306 SetSize
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
307 tst <Size
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
308 bpl SetSize1 If Size is >=0, then it's already been set.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
309 sta <Size
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
310 SetSize1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
311 rts
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
312
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
313 * -c option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
314 Setcycle
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
315 lda #$FF
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
316 sta <cycle
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
317 rts
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
318
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
319 * -y option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
320 Setskip
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
321 lbsr Getnum
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
322 pshs d
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
323 ldd <Skiplines
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
324 bpl noskip
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
325 ldd ,s
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
326 std <Skiplines
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
327 noskip
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
328 puls d,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
329
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
330 * -x option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
331 Setcols
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
332 lbsr Getnum
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
333 pshs d
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
334 ldd <Skipcols
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
335 bpl nocols
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
336 ldd ,s
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
337 std <Skipcols
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
338 nocols
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
339 puls d,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
340
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
341 * -q option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
342 Quit
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
343 lbsr Getnum
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
344 lda #60 Multiply by 60 ticks/second.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
345 mul
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
346 std <MaxTime
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
347 rts
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
348
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
349 * -nobuff option
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
350 NoBuff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
351 ldd #16 16 bytes of buffer.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
352 std <MaxBuff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
353 rts
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
354
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
355 * Handle format options
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
356 * On entry, A holds the format code
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
357 SetFormat
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
358 tst <format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
359 bne SetForm1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
360 sta <format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
361 SetForm1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
362 rts
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
363
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
364 * Set signal PID and value
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
365 SetSignal
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
366 lbsr Getnum
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
367 stb <SigPID
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
368 lbsr Getnum
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
369 stb <SigOut
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
370 rts
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
371
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
372 endsect