annotate level1/cmds/xmode.asm @ 1325:84ea83668304

Redid comments, reset all rev nibbles that weren't explictly set to 0
author boisy
date Thu, 04 Sep 2003 23:06:16 +0000
parents 64a0273a846a
children 22c82cfcb1f5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
963
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
1 ********************************************************************
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
2 * EXMode - Extended SCF device descriptor utility
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
3 *
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
4 * $Id$
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
5 *
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 1264
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 1264
diff changeset
7 * Comment
963
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 1264
diff changeset
9 * 1 1989/06/21 Bruce Isted
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 1264
diff changeset
10 * Released to public domain.
963
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
11
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
12 nam EXMode
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
13 ttl Extended SCF device descriptor utility
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
14
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
15 ifp1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
16 use defsfile
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
17 endc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
18
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
19 BuffSize equ 10 max. CHAR string length
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
20 Edtn equ 1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
21 MaxSize equ $80 maximum module size
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
22 NameSize equ 4 maximum module name length
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 1264
diff changeset
23 rev equ 0
963
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
24
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
25 org 0
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
26 Count rmb 1 number of option bytes
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
27 DataPtr rmb 2 current option ptr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
28 HexIn rmb 2 2 byte hex number
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
29 ModAddr rmb 2 module address
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
30 ModSize rmb 2 module size
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
31 OptEnd rmb 2 option table end offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
32 ParmPtr rmb 2 next name DataPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
33 PathNmbr rmb 1 file path
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
34 TxtPtr rmb 2 option name ptr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
35 Buffer rmb BuffSize miscellaneous output buffer
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
36 ModBuff rmb MaxSize module work copy buffer
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
37 stack rmb $0200 stack and parameter space
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
38 MemSize equ .
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
39
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 1264
diff changeset
40 mod Size,Name,Prgrm+Objct,ReEnt+rev,Entry,MemSize
963
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
41
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
42 Name fcs "EXMode"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
43 fcb Edtn edition number
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
44
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
45 OptTable
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
46 fcc " nam" option name
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
47 fcb Sign+M$Name,NameSize offset to string offset & max. byte count to change
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
48 fcc " mgr"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
49 fcb Sign+M$FMgr,0 offset to string offset & no changes allowed
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
50 fcc " ddr"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
51 fcb Sign+M$PDev,0
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
52 fcc " hpn"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
53 fcb M$Port,1 option offset & byte count
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
54 fcc " hpa"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
55 fcb M$Port+1,2
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
56 fcc " upc"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
57 fcb IT.UPC,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
58 fcc " bso"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
59 fcb IT.BSO,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
60 fcc " dlo"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
61 fcb IT.DLO,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
62 fcc " eko"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
63 fcb IT.EKO,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
64 fcc " alf"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
65 fcb IT.ALF,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
66 fcc " nul"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
67 fcb IT.NUL,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
68 fcc " pau"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
69 fcb IT.PAU,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
70 fcc " pag"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
71 fcb IT.PAG,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
72 fcc " bsp"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
73 fcb IT.BSP,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
74 fcc " del"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
75 fcb IT.DEL,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
76 fcc " eor"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
77 fcb IT.EOR,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
78 fcc " eof"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
79 fcb IT.EOF,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
80 fcc " rpr"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
81 fcb IT.RPR,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
82 fcc " dup"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
83 fcb IT.DUP,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
84 fcc " psc"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
85 fcb IT.PSC,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
86 fcc " int"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
87 fcb IT.INT,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
88 fcc " qut"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
89 fcb IT.QUT,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
90 fcc " bse"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
91 fcb IT.BSE,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
92 fcc " ovf"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
93 fcb IT.OVF,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
94 fcc " par"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
95 fcb IT.PAR,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
96 fcc " bau"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
97 fcb IT.BAU,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
98 fcc " xon"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
99 fcb IT.XON,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
100 fcc " xof"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
101 fcb IT.XOFF,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
102 fcc " col"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
103 fcb IT.COL,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
104 fcc " row"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
105 fcb IT.ROW,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
106 IFGT Level-1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
107 fcc " xtp"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
108 fcb IT.XTYP,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
109 fcc " wnd"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
110 fcb IT.WND,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
111 fcc " val"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
112 fcb IT.VAL,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
113 fcc " sty"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
114 fcb IT.STY,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
115 fcc " cpx"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
116 fcb IT.CPX,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
117 fcc " cpy"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
118 fcb IT.CPY,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
119 fcc " fgc"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
120 fcb IT.FGC,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
121 fcc " bgc"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
122 fcb IT.BGC,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
123 fcc " bdc"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
124 fcb IT.BDC,1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
125 ENDC
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
126 TablOpts equ (*-OptTable)/6 number of table entries
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
127 fcb $80 end of option table
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
128
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
129 UseMsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
130 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
131 fcc "Usage: EXMode [/<device> || -<pathlist> || -?] [option] [option] [...]"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
132 fcb C$LF,C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
133 fcc "Purpose: To report or alter current option settings of SCF device"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
134 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
135 fcc " descriptors in memory or on disk in single module files."
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
136 fcb C$LF,C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
137 fcc "Options: nam, mgr, ddr, hpn, hpa, upc, bso, dlo, eko, alf, nul, pau,"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
138 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
139 fcc " pag, bsp, del, eor, eof, rpr, dup, psc, int, qut, bse, ovf,"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
140 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
141 fcc " par, bau, xon, xof, col, row, xtp, wnd, val, sty, cpx, cpy,"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
142 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
143 fcc " fgc, bgc, bdc"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
144 fcb C$LF,C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
145 fcc "Examples: exmode /t2"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
146 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
147 fcc " Prints the current option settings of the /T2 descriptor"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
148 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
149 fcc " in memory."
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
150 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
151 fcc " exmode -modules/t4.dd nam=T2 bau=6 hpa=ff6c eof=1B"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
152 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
153 fcc " Changes the module name in the MODULES/T4.dd file to T2,"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
154 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
155 fcc " sets the baud rate code to 6, the hardware port address"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
156 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
157 fcc " to $FF6C, and the end of file character to $1B."
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
158 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
159 fcc " exmode -?"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
160 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
161 fcc " Prints more complete information on all of the options."
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
162 fcb C$CR
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
163 UseLen equ *-UseMsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
164
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
165 HelpMsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
166 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
167 fcc "The NAM option accepts only a legal OS-9 module name with a maximum of"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
168 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
169 fcc "4 characters. It is up to the user to ensure that there is adequate"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
170 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
171 fcc "room for the module name, and if required to rename the disk file to"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
172 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
173 fcc "suit the new module name. The MGR and DDR options can't be changed."
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
174 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
175 fcc "All other options require hexadecimal numbers (0 through FFFF). XTP is"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
176 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
177 fcc "for certain ACIA descriptors only. WND, VAL, STY, CPX, CPY, FGC, BGC,"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
178 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
179 fcc "and BDC are for window descriptors only."
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
180 fcb C$LF,C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
181 fcc "nam Device Name mgr File Manager Name ddr Device Driver Name"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
182 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
183 fcc "hpn H'ware Page Number hpa H'ware Port Address upc Case Lock Flag"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
184 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
185 fcc "bso Backspace Method dlo Delete Line Method eko Screen Echo Flag"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
186 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
187 fcc "alf Auto Linefeed Flag nul End Of Line Nulls pau Page Pause Flag"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
188 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
189 fcc "pag Page Length bsp Backspace Character del Delete Line Char"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
190 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
191 fcc "eor End Of Record Char eof End Of File Char rpr Reprint Line Char"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
192 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
193 fcc "dup Duplicate Line Char psc Pause Character int Interrupt Character"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
194 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
195 fcc "qut Quit Character bse Backspace Echo Char ovf Overflow Character"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
196 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
197 fcc "par Type (Parity) Code bau Baud Rate Code xon XON Character"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
198 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
199 fcc "xof XOFF Character col Display Columns row Display Rows"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
200 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
201 fcc "xtp Extended Type Code wnd Window Number val Valid Window Flag"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
202 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
203 fcc "sty Window Screen Type cpx X Corner Position cpy Y Corner Position"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
204 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
205 fcc "fgc Foreground Colour bgc Background Colour bdc Border Colour"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
206 fcb C$CR
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
207 HelpLen equ *-HelpMsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
208
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
209 Equal fcc "="
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
210
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
211 TypeMsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
212 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
213 fcc "Not an SCF descriptor!"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
214 CR fcb C$CR
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
215 TypeLen equ *-TypeMsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
216
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
217 Sizemsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
218 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
219 fcc "Module size out of range!"
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
220 fcb C$CR
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
221 Sizelen equ *-Sizemsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
222
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
223 SynMsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
224 fcb C$LF
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
225 fcc "Syntax error: "
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
226 SynLen equ *-SynMsg
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
227
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
228 ****************
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
229 * miscellaneous error and help routines
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
230
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
231 MuchHelp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
232 leax HelpMsg,pc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
233 ldy #HelpLen
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
234 bra Helpprnt
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
235
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
236 BadSize
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
237 leax Sizemsg,pc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
238 ldy #Sizelen
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
239 bra AddHelp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
240
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
241 BadType
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
242 leax TypeMsg,pc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
243 ldy #TypeLen
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
244 AddHelp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
245 lda #2
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
246 os9 I$WritLn
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
247 Help
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
248 leax UseMsg,pc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
249 ldy #UseLen
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
250 Helpprnt
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
251 lda #2
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
252 os9 I$WritLn
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
253 lbra OkayEnd2
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
254
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
255 ****************
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
256 Entry
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
257 ldd #0
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
258 std <ModAddr zero mod flag
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
259 sta <PathNmbr zero file flag
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
260 ldd ,x+ check for device name
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
261 cmpa #'- file option?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
262 bne Link
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
263 cmpb #'? help option?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
264 beq MuchHelp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
265 * Use Filename to Get Desc:
1264
64a0273a846a Case fixes, etc.
boisy
parents: 963
diff changeset
266 lda #UPDAT. open path to module file
963
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
267 os9 I$Open
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
268 bcs Help
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
269 stx <ParmPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
270 sta <PathNmbr save path number
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
271 ldy #MaxSize max size
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
272 leax ModBuff,u module buff
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
273 os9 I$Read get it
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
274 lbcs Error
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
275 ldb M$Opt,x
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
276 clra [D] = option table size
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
277 addd #M$DTyp add options start offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
278 std <OptEnd save options end offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
279 ldd M$Size,x get module size
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
280 cmpd #MaxSize module size OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
281 bhi BadSize no, go return error...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
282 std <ModSize
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
283 bra GotIt
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
284
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
285 Link
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
286 cmpa #'/ else must be /<devicename>
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
287 bne Help
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
288 pshs u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
289 lda #Devic
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
290 os9 F$Link link to module
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
291 bcs Help
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
292 stx <ParmPtr update after name
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
293 tfr u,x
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
294 puls u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
295 stx <ModAddr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
296 ldb M$Opt,x
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
297 clra [D] = option table size
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
298 addd #M$DTyp add options start offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
299 std <OptEnd save options end offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
300 ldd M$Size,x get module size
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
301 cmpd #MaxSize module size OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
302 lbhi BadSize no, go report error...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
303 std <ModSize
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
304 tfr d,y copy module size...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
305 pshs u save data area pointer
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
306 leau ModBuff,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
307
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
308 GetModLp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
309 lda ,x+
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
310 sta ,u+
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
311 leay -1,y
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
312 bne GetModLp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
313 puls u recover data area pointer
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
314
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
315 GotIt
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
316 ldd <OptEnd get option table end offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
317 cmpd <ModSize is option table size OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
318 lbhs BadSize no, go report error...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
319 leax ModBuff,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
320 lda M$DTyp,x get device type
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
321 lbne BadType SCF = $00
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
322 ldx <ParmPtr point to input parms
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
323 lbsr SkipSpac go skip leading spaces...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
324 cmpa #C$CR no options?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
325 lbeq Info ..yes, give info
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
326 leax -1,x
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
327
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
328 ****************
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
329 * X=ParmPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
330 * Find and Set Options:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
331
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
332 FindLp10
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
333 lbsr SkipSpac get next input param
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
334 stx <ParmPtr save for syntax error use
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
335 cmpa #C$CR end?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
336 lbeq Verify ..yes, update module CRC
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
337 leay OptTable-6,pc ready option table ptr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
338 pshs u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
339 ldu ,x++ get next two chars
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
340 ora #$20 convert 1st param char to lower case
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
341 exg d,u move [U] where we can convert param chars
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
342 ora #$20 convert 2nd param char...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
343 orb #$20 convert 3rd...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
344 exg d,u move back again
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
345
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
346 FindLp20
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
347 leay 6,y next option entry
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
348 tst ,y last entry?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
349 bmi Syntax ..yes, bad option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
350 cmpa 1,y
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
351 bne FindLp20 same name?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
352 cmpu 2,y
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
353 bne FindLp20 ..no, loop
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
354 * Found Option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
355 puls u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
356 sty <TxtPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
357 ldd ,x+ must be followed by "=", leave [X] pointing at char after "="
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
358 cmpa #'=
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
359 bne Syntax
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
360 cmpb #C$CR rest of option missing?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
361 beq Syntax yes, go report error
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
362 cmpb #C$SPAC rest of option missing?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
363 beq Syntax yes, go report error
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
364 ldb 5,y get # of bytes
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
365 beq Syntax 0 bytes, not allowed to change this option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
366 stb <Count
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
367 ldb 4,y get option offset or offset to option offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
368 bpl NumOpt option offset, go set hexadecimal option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
369 * Get CHAR input and set option:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
370 andb #^Sign clear sign bit of offset to string offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
371 clra [D] = offset to string offset within module
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
372 cmpd <ModSize is it OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
373 bhs Syntax no, go report error...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
374 leay ModBuff,u point to module
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
375 ldd b,y get offset to string
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
376 cmpd <ModSize is it OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
377 bhs Syntax no, go report error...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
378 leay d,y point to option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
379 pshs y save option pointer
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
380 os9 F$PrsNam valid OS-9 name?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
381 puls y recover option pointer (end of name pointer lost)
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
382 bcs Syntax no, go report error
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
383 cmpa #C$SPAC space delimiter char?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
384 beq ChkLen yes, go check name length...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
385 cmpa #C$CR <CR> delimiter char?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
386 bne Syntax no, go report error
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
387
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
388 ChkLen
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
389 cmpb <Count name length OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
390 bhi Syntax no, go report error...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
391
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
392 SetChrLp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
393 lda ,x+ get character
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
394 sta ,y+ save it to module copy
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
395 decb done yet?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
396 bne SetChrLp no, go copy another char...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
397 lda -1,y get last char
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
398 ora #Sign set sign bit
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
399 sta -1,y save last char
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
400 lbra FindLp10 go do next...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
401
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
402 * Syntax Error:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
403 Syntax
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
404 leax SynMsg,pc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
405 ldy #SynLen
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
406 lda #2
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
407 os9 I$Write
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
408 ldx <ParmPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
409 leax -1,x
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
410 pshs x
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
411 ldy #0
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
412
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
413 CntLoop
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
414 leay 1,y
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
415 lda ,x+
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
416 cmpa #C$CR
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
417 beq SynSay
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
418 cmpa #C$SPAC
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
419 bne CntLoop
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
420
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
421 SynSay
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
422 puls x
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
423 lda #2
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
424 os9 I$Write output err
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
425 lbra OkayEnd
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
426
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
427 * Get Hex Input and Set Option:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
428 NumOpt
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
429 clra [D] = option offset within module
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
430 cmpd <OptEnd is it OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
431 bhs Syntax no, go report error...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
432 clr <HexIn zero hex input bytes
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
433 clr <HexIn+1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
434
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
435 SetNumLp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
436 lda ,x+ get next #
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
437 cmpa #C$SPAC end of number?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
438 beq SetNum2 ..yes, set option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
439 cmpa #C$CR end of line?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
440 beq SetNum1 ..yes, set option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
441 * Convert ASCII Hex-->Byte:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
442 suba #$30 make number from ASCII
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
443 bmi Syntax
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
444 cmpa #10 is it number?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
445 bcs Num
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
446 anda #$5F make uppercase
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
447 suba #$11-$0A make hex $A-$F
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
448 cmpa #$0A
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
449 bcs Syntax
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
450 cmpa #$10 not hex char?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
451 bcc Syntax
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
452
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
453 Num
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
454 ldb #16 fancy asl *4
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
455 mul
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
456 pshs b save top 4 bits
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
457 ldd <HexIn
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
458 rol ,s
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
459 rolb
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
460 rola
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
461 rol ,s
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
462 rolb
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
463 rola
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
464 rol ,s
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
465 rolb
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
466 rola
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
467 rol ,s
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
468 rolb
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
469 rola
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
470 std <HexIn
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
471 puls b drop temp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
472 bra SetNumLp ..loop
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
473
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
474 SetNum1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
475 leax -1,x reset so can find <CR>
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
476
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
477 SetNum2
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
478 ldb 4,y get option offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
479 leay ModBuff,u point to module
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
480 leay b,y point to option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
481 ldd <HexIn pick up hex input
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
482 dec <Count
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
483 beq SetOne
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
484 std ,y set two byte option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
485 lbra FindLp10
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
486
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
487 SetOne
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
488 tsta
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
489 lbne Syntax
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
490 stb ,y set one byte option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
491
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
492 SetNDone
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
493 lbra FindLp10
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
494
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
495 * --------------
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
496 * Skip Spaces:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
497 SkipSpac
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
498 lda ,x+
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
499 cmpa #C$SPAC
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
500 beq SkipSpac
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
501 rts
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
502
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
503 * --------------
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
504 * Update Module CRC:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
505 Verify
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
506 pshs u save data ptr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
507 leau ModBuff,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
508 tfr u,x X is mod address
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
509 ldy M$Size,x Y is mod size
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
510 leay -3,y beginning of chksum
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
511 tfr y,d Y is byte count
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
512 leau d,u set U to chksum
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
513 lda #$FF init chksum
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
514 sta ,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
515 sta 1,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
516 sta 2,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
517 pshs u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
518 os9 F$CRC calc new crc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
519 puls u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
520 com ,u+ fix it up right
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
521 com ,u+
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
522 com ,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
523 lda <PathNmbr was it file?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
524 beq MemMod ..no, in memory
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
525 ldx #0
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
526 tfr x,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
527 os9 I$Seek go back to file begin
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
528 bcs Error
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
529 puls u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
530 leax ModBuff,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
531 ldy <ModSize
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
532 os9 I$Write update module file
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
533 bra OkayEnd
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
534
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
535 MemMod
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
536 ldu ,s get data area pointer
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
537 leax ModBuff,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
538 ldy <ModSize
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
539 ldu <ModAddr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
540
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
541 PutModLp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
542 lda ,x+
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
543 sta ,u+
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
544 leay -1,y
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
545 bne PutModLp
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
546 puls u recover data area pointer
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
547 bra OkayEnd2
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
548
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
549 OkayEnd
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
550 bsr OutCR
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
551
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
552 OkayEnd2
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
553 clrb okay
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
554
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
555 Error
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
556 pshs b,cc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
557 ldu <ModAddr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
558 beq Bye
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
559 os9 F$UnLink
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
560
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
561 Bye
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
562 puls b,cc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
563 os9 F$Exit we're done...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
564
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
565 * --------------
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
566 * Print a <CR>:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
567 OutCR
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
568 leax CR,pc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
569 ldy #1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
570 lda #1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
571 os9 I$WritLn
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
572 rts
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
573
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
574 ****************
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
575 * Output Current Desc Info:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
576 Info
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
577 bsr OutCR do a <CR>
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
578 ldb #TablOpts number of table entries
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
579 pshs b save counter
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
580 leax OptTable,pc point to text table
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
581 stx <TxtPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
582
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
583 InfoLoop
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
584 ldx <TxtPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
585 ldy #4
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
586 lbsr OutPut print option name
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
587 leax Equal,pc
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
588 ldy #1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
589 lbsr OutPut print =
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
590 ldx <TxtPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
591 ldb 4,x get offset to HEX option; if minus, offset to option offset
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
592 bpl PrintHex go do simple offset to HEX option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
593 andb #^Sign clear sign bit
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
594 clra [D] = offset to string offset within module
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
595 cmpd <ModSize is it OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
596 bhs MovePtr no, skip this option...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
597 leay ModBuff,u point [Y] to module work copy
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
598 ldd b,y get string offset within module
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
599 cmpd <ModSize is string offset OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
600 bhs MovePtr no, skip this option...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
601 leay d,y point [Y] to CHAR string
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
602 lda #BuffSize get max. chars to print
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
603 leax Buffer,u point [X] to CHAR string buffer
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
604 clr <Count init counter
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
605
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
606 CharCopy ldb ,y+ get char
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
607 bpl NotLast sign bit clear so not last, go on...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
608 andb #^Sign clear sign bit
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
609 lda #1 set up as last char
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
610
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
611 NotLast stb ,x+
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
612 inc <Count count chars in string
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
613 deca done yet?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
614 bne CharCopy no, go do another char...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
615 ldb <Count get chars in string ([A]=0, so [D]=char count)
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
616 tfr d,y module name length into [Y]
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
617 leax Buffer,u point [X] to CHAR string copy
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
618 bsr OutPut print CHAR string
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
619 bra MovePtr skip HEX output routine
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
620
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
621 * Print Hex Option Values:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
622 PrintHex
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
623 ldx <TxtPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
624 ldb 5,x get # of digits
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
625 stb <Count
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
626 ldb 4,x get option offset in module
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
627 clra [D] = option offset within module
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
628 cmpd <OptEnd is option offset OK?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
629 bhs MovePtr no, skip this option...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
630 leax ModBuff,u point [X] to module work copy
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
631 abx point [X] to option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
632 stx <DataPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
633
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
634 * Print One Byte:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
635 NumLoop
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
636 ldx <DataPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
637 lda ,x+
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
638 stx <DataPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
639 pshs a
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
640 lsra
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
641 lsra
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
642 lsra
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
643 lsra
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
644 bsr OutOne
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
645 puls a
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
646 anda #$0F
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
647 bsr OutOne
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
648 dec <Count
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
649 bne NumLoop
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
650
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
651 MovePtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
652 ldx <TxtPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
653 leax 6,x
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
654 stx <TxtPtr
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
655 dec ,s
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
656 lbeq OkayEnd done...
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
657 ldb ,s
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
658 bitb #$07 # of options remaining evenly divisible by eight?
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
659 lbne InfoLoop no, go print next option on same line
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
660 lbsr OutCR <CR> after every 8th option
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
661 lbra InfoLoop ..loop
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
662
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
663 * --------------
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
664 * Print 1/2 Byte Hex Char:
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
665 OutOne
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
666 cmpa #10
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
667 bcs Number
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
668 adda #$11-10 make alpha
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
669
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
670 Number
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
671 adda #$30 make ASCII
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
672 sta <Buffer
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
673 leax Buffer,u
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
674 ldy #1
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
675
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
676 OutPut
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
677 lda #1 std out
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
678 os9 I$Write
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
679 lbcs Error
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
680 rts
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
681
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
682 emod
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
683 Size equ *
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
684 end
7cecd837bcab Added new commands as part of standard CMDS distribution
boisy
parents:
diff changeset
685