annotate level2/modules/krnp3_perr.asm @ 1347:89572d423498

Made case fixes
author boisy
date Wed, 17 Sep 2003 17:40:49 +0000
parents d13864ef3317
children 8e804211cb25
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
1 ********************************************************************
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
2 * OS9p3 - Printerr functionality for Level II
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
3 *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
4 * $Id$
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
5 *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
6 * Peter E. Durham
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
7 * The New Wentworth Timesharing System
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
8 * summer: 6 Twin Brook Circle school: Quincy House D-24
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
9 * Andover, MA 01810 58 Plympton St.
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
10 * (617) 475-4243 Cambridge, MA 02138
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
11 * (617) 498-3209
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
12 * cis: 73177,1215 delphi: PEDXING
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
13 * unix: harvard!husc4!durham_2 intnet: durham_2@husc4.harvard.edu
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
14 *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
15 * COPYRIGHT (C) 1987 by Peter Durham
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
16 * Permission is given to all members of the OS-9 community to use,
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
17 * modify, and share this program for their personal enjoyment.
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
18 * Commercial use of this program, which was written for fun to share with
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
19 * the community, is prohibited without the consent of the author.
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
20 * Please share any extensions or modifications with the author, who
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
21 * would be interested in hearing about them.
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
22 *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
23 * NOTE
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
24 * Quick poll... how does the above sound as a copyright notice? Clearly,
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
25 * authors like to share their work while maintaining some control on it.
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
26 * And it doesn't seem fair for someone else to make $ from something
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
27 * someone else made for fun. I think the above conditions are what most
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
28 * people want. Let me know what you think.
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
29 *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
30 * NOTE
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
31 * The inspiration for this utility was the os9p3 example in
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
32 * the Tandy Level II manual. Tandy deserves praise for
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
33 * including examples such as this one in their manuals.
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
34 *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
35 * NOTE
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
36 * There is something funny about OS9p3 modules... some versions
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
37 * are not liked, others are. When developing this module, often
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
38 * a version would fail... but if I added a "leas 0,s" right before
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
39 * the "rts" in PrinBuf, it would work! Probably the location and
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
40 * operation are not significant. This version here has never failed
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
41 * to boot on my system; however, if it does on yours (or you change
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
42 * it), try putting such things in.
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
43 *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
44 * NOTE
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
45 * For those people who just can't have enough... OS9p3 will look for
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
46 * a module called OS9p4, and link to it, and execute it. Thanks to
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
47 * Kev for this idea. Now we can keep additions to the kernel in nice
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
48 * separate chunks. (How long 'til OS9p11 comes around...?)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
49 *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
50 * Ed. Comments Who YY/MM/DD
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
51 * ------------------------------------------------------------------
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
52 * 1 First release PED 87/06/23
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
53 nam OS9p3
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
54 ttl Printerr functionality for Level II
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
55
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
56 ifp1
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
57 use defsfile
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
58 endc
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
59
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
60 type set Systm ;System module, 6809 object code
1289
d13864ef3317 Changed to rev 0
boisy
parents: 747
diff changeset
61 revs set 0 ;
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
62 edition set 1
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
63
1289
d13864ef3317 Changed to rev 0
boisy
parents: 747
diff changeset
64 mod eom,name,type,ReEnt+revs,entry,256
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
65
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
66 name fcs "OS9p3"
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
67 fcb edition
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
68
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
69 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
70 * Initialization routine and table
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
71 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
72 Entry equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
73 leay SvcTbl,pcr ;Get address of table
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
74 os9 F$SSvc ;Install services in table
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
75 lda #Type ;Get system module type for OS9p4
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
76 leax P4Name,pcr ;Get name for OS9p4
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
77 os9 F$Link ;Try to link to it
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
78 bcs Exit ;If not found, exit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
79 jsr ,y ;Go execute it!
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
80 Exit rts ;Return to os9p2
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
81
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
82 SvcTbl equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
83 fcb F$PErr ;System call number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
84 fdb PErr-*-2 ;Offset to code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
85 fcb $80 ;End of table
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
86
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
87 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
88 * The new F$Perr service call
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
89 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
90 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
91 * Data (in user space!)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
92 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
93 BufLen equ 80
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
94 Buf rmb BufLen
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
95 HunDig equ Buf+7
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
96 TenDig equ Buf+8
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
97 OneDig equ Buf+9
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
98 DataMem equ .
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
99
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
100 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
101 * FUNCTION PErr
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
102 * PURPOSE Top level routine
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
103 * REGISTERS B = Error code (after Setup)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
104 * U = User memory area (after Setup)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
105 * Y = User process descriptor (after Setup)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
106 * A = Error file path number (after OpenFil)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
107 * X = Pointer to strings
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
108 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
109 PErr equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
110 bsr Setup ;Go set up registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
111 leax ErrMsg,pcr ;Get pointer to "Error #000"
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
112 bsr MoveBuf ;Go copy it over
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
113 bsr WritNum ;Go copy the number into it
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
114 lbsr PrinMsg ;Go print the message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
115 bcs PErrBye ;If error, abort
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
116 leax FilNam,pcr ;Get pointer to "/dd/sys/errmsg"
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
117 bsr MoveBuf ;Go copy it over
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
118 lbsr OpenFil ;Go open the file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
119 bcs PErrBye ;If error, abort
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
120 Loop lbsr RdBuf ;Go read a line from the file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
121 bcs Error ;If error, print CR, and abort
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
122 pshs b ;Save error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
123 pshs b ;Save error code again for compare
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
124 bsr CalcNum ;What number is on this line?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
125 cmpb ,s+ ;Is this line the right line?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
126 puls b ;Restore error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
127 bne Loop ;If not right line, loop again
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
128 lbsr PrinBuf ;If right line, write line out
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
129 bra Close ;Done, so close the file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
130 Error lbsr DoCR ;Go print a carriage return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
131 Close lbsr ClosFil ;Go close the file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
132 PErrBye rts ;Return from system call
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
133
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
134 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
135 * FUNCTION SetUp
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
136 * PURPOSE Sets up registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
137 * GIVES B = Error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
138 * U = Pointer to data memory on user stack in user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
139 * Y = Pointer to user process descriptor in system space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
140 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
141 SetUp equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
142 ldb R$B,u ;Get error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
143 ldy D.Proc ;Get user's process descriptor
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
144 ldu P$SP,y ;Get user's stack pointer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
145 leau -DataMem,u ;Reserve a little space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
146 rts
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
147
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
148 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
149 * FUNCTION MoveBuf
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
150 * PURPOSE Copies string to user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
151 * TAKES X = location of string in system space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
152 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
153 MoveBuf equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
154 pshs u,y,d ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
155 lda D.SysTsk ;Get system process task number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
156 ldb P$Task,y ;Get user process task number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
157 leau Buf,u ;Get pointer to destination buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
158 ldy #BufLen ;Copy BufLen characters over (extras, oh well)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
159 os9 F$Move ;Move string to user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
160 puls d,y,u,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
161
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
162 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
163 * FUNCTION WriteNum
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
164 * PURPOSE Puts the ASCII value of the error code in user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
165 * TAKES B = error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
166 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
167 WritNum equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
168 pshs x,d ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
169 clra ;Start A as 0
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
170 Huns cmpb #100 ;Is B >= 100?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
171 blo HunDone ;If not, go do Tens
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
172 inca ;Increment hundreds digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
173 subb #100 ;Subtract 100 from B
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
174 bra Huns ;Go do again
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
175 HunDone leax HunDig,u ;Where to put digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
176 bsr WritDig ;Go put it there
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
177 clra ;Start A again as 0
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
178 Tens cmpb #10 ;Is B >= 10?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
179 blo TenDone ;If not, go do Ones
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
180 inca ;Increment hundreds digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
181 subb #10 ;Subtract 10 from B
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
182 bra Tens ;Go do again
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
183 TenDone leax TenDig,u ;Where to put digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
184 bsr WritDig ;Go put it there
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
185 tfr b,a ;Get ones digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
186 leax OneDig,u ;Where to put digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
187 bsr WritDig ;Go put it there
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
188 puls d,x,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
189
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
190 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
191 * FUNCTION WritDig
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
192 * PURPOSE Copy digit into user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
193 * TAKES A = digit to copy (not in ASCII yet)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
194 * X = where to put digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
195 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
196 WritDig equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
197 pshs d ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
198 adda #'0 ;Convert A to ASCII
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
199 ldb P$Task,y ;Get task number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
200 os9 F$StABX ;Write that digit to user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
201 puls d,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
202
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
203 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
204 * FUNCTION CalcNum
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
205 * PURPOSE Converts ASCII number in user space to binary
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
206 * TAKES Buf (in user space) = ASCII number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
207 * GIVES B = number converted
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
208 * X = points to first nonnumeric character
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
209 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
210 CalcNum equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
211 pshs a ;Save register
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
212 leax Buf,u ;Get pointer to buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
213 clrb ;Set accumulator to zero
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
214 NextDig bsr LoadDig ;Get digit from user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
215 suba #'0 ;Convert to binary; is it less than zero?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
216 bmi CalcBye ;If so, return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
217 cmpa #9 ;Is the digit more than nine?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
218 bhi CalcBye ;If so, return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
219 pshs a ;Save the digit while we multiply
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
220 lda #10 ;Multiply current number by 10
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
221 mul ;Do it
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
222 addb ,s+ ;Add new digit to number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
223 leax 1,x ;Advance X to next digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
224 bra NextDig ;Go get the next digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
225 CalcBye puls a,pc ;Restore register and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
226
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
227 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
228 * FUNCTION LoadDig
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
229 * PURPOSE Get digit from user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
230 * TAKES X = pointer to digit in user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
231 * GIVES A = digit in user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
232 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
233 LoadDig equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
234 pshs b ;Save register
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
235 ldb P$Task,y ;Get user process task number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
236 os9 F$LdABX ;Get digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
237 puls b,pc ;Restore register and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
238
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
239 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
240 * FUNCTION PrinMsg
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
241 * PURPOSE Prints out the Error #xxx message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
242 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
243 PrinMsg equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
244 pshs y,x,a ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
245 lda P$Path+2,y ;Get StdErr path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
246 leax Buf,u ;Get pointer to message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
247 ldy #ErrLen ;Maximum ErrLen characters to print
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
248 os9 I$Write ;Write out error message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
249 puls a,x,y,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
250
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
251 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
252 * FUNCTION DoCR
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
253 * PURPOSE Prints a carriage return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
254 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
255 DoCR equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
256 pshs x,d ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
257 ldb P$Task,y ;Get user task number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
258 lda #$0D ;Load A with a CR
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
259 leax Buf,u ;Get pointer to buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
260 os9 F$StABX ;Move the CR to the buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
261 bsr PrinBuf ;Go print it
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
262 puls d,x,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
263
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
264 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
265 * FUNCTION PrinBuf
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
266 * PURPOSE Prints out the string from user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
267 * TAKES X (in user space) = String to print
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
268 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
269 PrinBuf equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
270 pshs y,a ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
271 lda P$Path+2,y ;Get StdErr path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
272 ldy #BufLen ;Maximum BufLen characters to print
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
273 os9 I$WritLn ;Write out message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
274 puls a,y,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
275
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
276 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
277 * FUNCTION RdBuf
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
278 * PURPOSE Reads in a string from file to user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
279 * TAKES A = path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
280 * GIVES Buf (in user space) = String read in
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
281 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
282 RdBuf equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
283 pshs y,x ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
284 leax Buf,u ;Get pointer to buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
285 ldy #BufLen ;Maximum BufLen characters to read
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
286 os9 I$ReadLn ;Read in line from file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
287 puls x,y,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
288
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
289 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
290 * FUNCTION OpenFil
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
291 * PURPOSE Open path to error message file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
292 * TAKES Buf (in user space) = name of file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
293 * GIVES A = Path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
294 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
295 OpenFil equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
296 pshs x ;Save register
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
297 lda #READ. ;Open path for read access
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
298 leax Buf,u ;Get pointer to string
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
299 os9 I$Open ;Open path
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
300 puls x,pc ;Restore registers and return A
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
301
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
302 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
303 * FUNCTION ClosFil
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
304 * PURPOSE Close path to error message file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
305 * TAKES A = Path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
306 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
307 ClosFil equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
308 os9 I$Close ;Close file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
309 rts ;Return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
310 P4Name fcc "OS9p4"
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
311 fcb $D
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
312 ErrMsg fcc "Error #000"
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
313 ErrLen equ *-ErrMsg
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
314 FilNam fcc "/dd/sys/errmsg"
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
315 fcb $D
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
316 FilLen equ *-FilNam
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
317
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
318 emod
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
319 eom equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
320 end