annotate level1/cmds/error.asm @ 1919:028161cd3535

uses ss.fd
author boisy
date Fri, 25 Nov 2005 12:39:54 +0000
parents 84ea83668304
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
1 ********************************************************************
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
2 * Error - Show text error messages
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
3 *
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
4 * $Id$
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
5 *
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
6 * By Bob Devries (c) 2003; bdevries@gil.com.au
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
7 *
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
8 * Released under the GNU public licence
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
9 *
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 946
diff changeset
10 * Edt/Rev YYYY/MM/DD Modified by
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 946
diff changeset
11 * Comment
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
12 * ------------------------------------------------------------------
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 946
diff changeset
13 * 1 2003/01/20 Bob Devries
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 946
diff changeset
14 * Rewrote in assembler for size.
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 946
diff changeset
15 *
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 946
diff changeset
16 * 2003/01/21 Bob Devries
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 946
diff changeset
17 * Fixed problem with trailing space.
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
18
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
19 nam Error
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
20 ttl Show text error messags
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
21
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
22 ifp1
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
23 use defsfile
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
24 endc
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
25
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
26 tylg set Prgrm+Objct
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
27 atrv set ReEnt+rev
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 946
diff changeset
28 rev set $00
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
29 edition set 1
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
30
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
31 mod eom,name,tylg,atrv,start,size
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
32
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
33 name fcs /Error/
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
34 fcb edition
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
35
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
36 org 0
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
37 path rmb 1
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
38 same rmb 1
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
39 prmptr rmb 2
946
5c80e10a5d03 renamed variable that was clashing with one in systype
boisy
parents: 938
diff changeset
40 prmend rmb 2
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
41 length rmb 2
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
42 parbuff rmb 256
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
43 filbuff rmb 256
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
44 stack rmb 350
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
45 size equ .
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
46
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
47 start cmpd #1 1 char == CR
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
48 lbeq help
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
49 tfr d,y length of parameters
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
50 bsr open
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
51 bcs exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
52 pshs u
938
cef89b8a4241 Fixed some bad assembler assumptions
boisy
parents: 937
diff changeset
53 leau parbuff,u point to buffer
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
54 entry0 lda ,x+
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
55 cmpa #C$SPAC is it a space (between parameters?)
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
56 beq entry1
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
57 cmpa #C$CR
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
58 bne nocr
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
59 entry1 clra yes, null it
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
60 nocr sta ,u+ store in buffer
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
61 leay -1,y decrement length counter
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
62 bne entry0
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
63 clr ,u
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
64 tfr u,y
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
65 puls u
946
5c80e10a5d03 renamed variable that was clashing with one in systype
boisy
parents: 938
diff changeset
66 sty <prmend store end of all parameters
938
cef89b8a4241 Fixed some bad assembler assumptions
boisy
parents: 937
diff changeset
67 leax parbuff,u load address of parbuff into X
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
68 stx <prmptr save parameter pointer
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
69 entry2 lda ,x
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
70 bne entry3
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
71 leax 1,x
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
72 bra rered2
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
73 entry3 bsr strlen go get string length of first param
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
74 std <length store it
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
75 reread bsr readlin read line from errmsg file
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
76 bcc rered0
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
77 cmpb #E$EOF did we find end-of-file?
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
78 lbeq unknown yep, tell user we don't know his error num
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
79 rered0 bsr compare compare user number with 1st 3 chars of line
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
80 beq reread compare returns 0 if failed
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
81 bsr print else go print the errmsg line
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
82 bcs exit exit if I$WritLn problem
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
83 rered1 ldd <length get length
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
84 ldx prmptr get parameter pointer
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
85 leax d,x add length to it
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
86 leax 1,x increment past null byte
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
87 rered2 clrb
946
5c80e10a5d03 renamed variable that was clashing with one in systype
boisy
parents: 938
diff changeset
88 cmpx <prmend
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
89 bge exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
90 stx <prmptr store it
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
91 lbsr seek0 rewind the file
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
92 bra entry2 loop around again
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
93
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
94 exit os9 F$Exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
95
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
96 open pshs x
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
97 leax errmsg,pcr point to file name
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
98 lda #READ. read mode
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
99 os9 I$Open
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
100 bcs open0
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
101 sta <path store path number
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
102 open0 puls x,pc
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
103
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
104 readlin pshs x,y
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
105 lda <path get file path number
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
106 ldy #256 read max 256 bytes
938
cef89b8a4241 Fixed some bad assembler assumptions
boisy
parents: 937
diff changeset
107 leax filbuff,u into memory pointed to by filbuff
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
108 os9 I$ReadLn
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
109 puls x,y,pc
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
110
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
111 print pshs x,y,a
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
112 lda #1 STDOUT
938
cef89b8a4241 Fixed some bad assembler assumptions
boisy
parents: 937
diff changeset
113 leax filbuff,u point to buffer
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
114 ldy #256 max of 256 chars
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
115 os9 I$WritLn
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
116 puls x,y,a,pc
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
117
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
118 strlen pshs x,y
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
119 ldy #0 initialise count
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
120 strl0 tst ,x+ is it a char > null
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
121 beq strl1 nope, exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
122 leay 1,y yep, increment count
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
123 bra strl0 do again
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
124 strl1 tfr y,d return with length in D
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
125 puls x,y,pc
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
126
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
127 compare pshs x,y
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
128 clr <same comparison indicator
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
129 ldx prmptr get address of next cmd line param
938
cef89b8a4241 Fixed some bad assembler assumptions
boisy
parents: 937
diff changeset
130 leay filbuff,u point to file buffer
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
131 comp0 lda ,x+ get char from cmd line
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
132 beq comp1 is it null (end of param)
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
133 cmpa ,y+ compare to file buffer
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
134 bne comp2 not same, exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
135 inc <same yep, in comparison counter
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
136 bra comp0 'round again
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
137 comp1 lda ,y
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
138 cmpa #C$SPAC was it end of number in errmsg file?
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
139 bne comp2
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
140 tst <same test indicator
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
141 puls x,y,pc
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
142 comp2 clr <same clear the counter
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
143 puls x,y,pc
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
144
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
145 unknown leax unkmsg,pcr point to message
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
146 ldy #unkmsgl num of chars to print
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
147 lda #1 to STDOUT
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
148 os9 I$Write
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
149 lbcs exit exit if problem with I$Write
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
150 ldx prmptr put pointer into parameter buffer in X
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
151 lda #1 STDOUT
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
152 ldy <length get length of user's param
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
153 os9 I$Write
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
154 lbcs exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
155 lda #1 STDOUT
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
156 leax return,pcr point to CR char
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
157 ldy #1 print 1 char
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
158 os9 I$WritLn
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
159 lbcs exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
160 ldx prmptr put point into parameter buffer in X
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
161 ldd <length get length of user's param
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
162 leax d,x add to X
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
163 leax 1,x increment past null byte
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
164 clrb
946
5c80e10a5d03 renamed variable that was clashing with one in systype
boisy
parents: 938
diff changeset
165 cmpx prmend
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
166 lbge exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
167 stx <prmptr store X
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
168 bsr seek0 rewind file
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
169 lbra entry2
324
eb24764bc7b7 Added error.asm to source base
boisy
parents:
diff changeset
170
937
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
171 seek0 pshs x,u
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
172 lda <path
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
173 ldx #0
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
174 ldu #0
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
175 os9 I$Seek
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
176 puls x,u,pc
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
177
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
178 help leax hlpmsg,pcr point to help message
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
179 lda #2 STDERR
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
180 ldy #256 max of 256 bytes (arbitrary, really)
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
181 os9 I$WritLn
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
182 lbcs exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
183 leax hlpmsg2,pcr 2nd line of message
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
184 lda #2
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
185 ldy #256
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
186 os9 I$WritLn
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
187 lbcs exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
188 clrb
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
189 lbra exit
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
190
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
191 hlpmsg fcc /Error errno [errno...]/
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
192 fcb C$CR
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
193 hlpmsg2 fcc /Usage: returns error message for given error numbers/
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
194 fcb C$CR
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
195 errmsg fcc "/DD/SYS/errmsg"
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
196 fcb 0
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
197 unkmsg fcc /Unknown error number - /
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
198 unkmsgl equ *-unkmsg
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
199 return fcb C$CR
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
200
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
201 emod
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
202 eom equ *
9f5945771770 Rewritten in assembler for size -- thanks Bob
boisy
parents: 924
diff changeset
203 end