annotate level2/modules/krnp3_perr.asm @ 1919:028161cd3535

uses ss.fd
author boisy
date Fri, 25 Nov 2005 12:39:54 +0000
parents 949d4df97cca
children 00dc1ef6a7aa
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 ********************************************************************
1587
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1482
diff changeset
2 * krnp3 - Printerr functionality for Level 2
747
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
1369
de053e06fdce Changes
boisy
parents: 1348
diff changeset
32 * the Tandy Level 2 manual. Tandy deserves praise for
747
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
1748
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
36 * There is something funny about KrnP3 modules... some versions
747
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
1748
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
45 * For those people who just can't have enough... KrnP3 will look for
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
46 * a module called KrnP4, and link to it, and execute it. Thanks to
747
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
1748
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
48 * separate chunks. (How long 'til KrnP11 comes around...?)
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
49 *
1348
8e804211cb25 Fixed sources to have new style change logs at top
boisy
parents: 1289
diff changeset
50 * Edt/Rev YYYY/MM/DD Modified by
8e804211cb25 Fixed sources to have new style change logs at top
boisy
parents: 1289
diff changeset
51 * Comment
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
52 * ------------------------------------------------------------------
1348
8e804211cb25 Fixed sources to have new style change logs at top
boisy
parents: 1289
diff changeset
53 * 1 1987/06/23 Peter E. Durham
8e804211cb25 Fixed sources to have new style change logs at top
boisy
parents: 1289
diff changeset
54 * First release.
8e804211cb25 Fixed sources to have new style change logs at top
boisy
parents: 1289
diff changeset
55
1587
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1482
diff changeset
56 nam krnp3
1369
de053e06fdce Changes
boisy
parents: 1348
diff changeset
57 ttl Printerr functionality for Level 2
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
58
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
59 ifp1
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
60 use defsfile
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
61 endc
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
62
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
63 type set Systm ;System module, 6809 object code
1289
d13864ef3317 Changed to rev 0
boisy
parents: 747
diff changeset
64 revs set 0 ;
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
65 edition set 1
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
66
1289
d13864ef3317 Changed to rev 0
boisy
parents: 747
diff changeset
67 mod eom,name,type,ReEnt+revs,entry,256
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
68
1668
08c3460dab82 Capitalized K in Krn
boisy
parents: 1587
diff changeset
69 name fcs "KrnP3"
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
70 fcb edition
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 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
73 * Initialization routine and table
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
74 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
75 Entry equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
76 leay SvcTbl,pcr ;Get address of table
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
77 os9 F$SSvc ;Install services in table
1748
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
78 lda #Type ;Get system module type for KrnP4
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
79 leax P4Name,pcr ;Get name for KrnP4
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
80 os9 F$Link ;Try to link to it
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
81 bcs Exit ;If not found, exit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
82 jsr ,y ;Go execute it!
1748
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
83 Exit rts ;Return to KrnP2
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
84
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
85 SvcTbl equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
86 fcb F$PErr ;System call number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
87 fdb PErr-*-2 ;Offset to code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
88 fcb $80 ;End of table
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 * The new F$Perr service call
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 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
94 * Data (in user space!)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
95 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
96 BufLen equ 80
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
97 Buf rmb BufLen
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
98 HunDig equ Buf+7
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
99 TenDig equ Buf+8
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
100 OneDig equ Buf+9
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
101 DataMem equ .
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
102
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
103 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
104 * FUNCTION PErr
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
105 * PURPOSE Top level routine
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
106 * REGISTERS B = Error code (after Setup)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
107 * U = User memory area (after Setup)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
108 * Y = User process descriptor (after Setup)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
109 * A = Error file path number (after OpenFil)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
110 * X = Pointer to strings
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
111 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
112 PErr equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
113 bsr Setup ;Go set up registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
114 leax ErrMsg,pcr ;Get pointer to "Error #000"
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
115 bsr MoveBuf ;Go copy it over
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
116 bsr WritNum ;Go copy the number into it
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
117 lbsr PrinMsg ;Go print the message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
118 bcs PErrBye ;If error, abort
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
119 leax FilNam,pcr ;Get pointer to "/dd/sys/errmsg"
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
120 bsr MoveBuf ;Go copy it over
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
121 lbsr OpenFil ;Go open the file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
122 bcs PErrBye ;If error, abort
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
123 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
124 bcs Error ;If error, print CR, and abort
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
125 pshs b ;Save error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
126 pshs b ;Save error code again for compare
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
127 bsr CalcNum ;What number is on this line?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
128 cmpb ,s+ ;Is this line the right line?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
129 puls b ;Restore error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
130 bne Loop ;If not right line, loop again
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
131 lbsr PrinBuf ;If right line, write line out
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
132 bra Close ;Done, so close the file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
133 Error lbsr DoCR ;Go print a carriage return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
134 Close lbsr ClosFil ;Go close the file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
135 PErrBye rts ;Return from system call
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
136
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
137 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
138 * FUNCTION SetUp
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
139 * PURPOSE Sets up registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
140 * GIVES B = Error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
141 * 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
142 * Y = Pointer to user process descriptor in system space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
143 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
144 SetUp equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
145 ldb R$B,u ;Get error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
146 ldy D.Proc ;Get user's process descriptor
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
147 ldu P$SP,y ;Get user's stack pointer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
148 leau -DataMem,u ;Reserve a little space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
149 rts
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
150
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
151 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
152 * FUNCTION MoveBuf
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
153 * PURPOSE Copies string to user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
154 * TAKES X = location of string in system space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
155 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
156 MoveBuf equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
157 pshs u,y,d ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
158 lda D.SysTsk ;Get system process task number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
159 ldb P$Task,y ;Get user process task number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
160 leau Buf,u ;Get pointer to destination buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
161 ldy #BufLen ;Copy BufLen characters over (extras, oh well)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
162 os9 F$Move ;Move string to user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
163 puls d,y,u,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
164
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
165 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
166 * FUNCTION WriteNum
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
167 * 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
168 * TAKES B = error code
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
169 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
170 WritNum equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
171 pshs x,d ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
172 clra ;Start A as 0
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
173 Huns cmpb #100 ;Is B >= 100?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
174 blo HunDone ;If not, go do Tens
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
175 inca ;Increment hundreds digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
176 subb #100 ;Subtract 100 from B
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
177 bra Huns ;Go do again
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
178 HunDone leax HunDig,u ;Where to put digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
179 bsr WritDig ;Go put it there
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
180 clra ;Start A again as 0
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
181 Tens cmpb #10 ;Is B >= 10?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
182 blo TenDone ;If not, go do Ones
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
183 inca ;Increment hundreds digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
184 subb #10 ;Subtract 10 from B
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
185 bra Tens ;Go do again
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
186 TenDone leax TenDig,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 tfr b,a ;Get ones digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
189 leax OneDig,u ;Where to put digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
190 bsr WritDig ;Go put it there
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
191 puls d,x,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
192
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
193 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
194 * FUNCTION WritDig
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
195 * PURPOSE Copy digit into user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
196 * TAKES A = digit to copy (not in ASCII yet)
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
197 * X = where to put digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
198 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
199 WritDig equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
200 pshs d ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
201 adda #'0 ;Convert A to ASCII
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
202 ldb P$Task,y ;Get task number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
203 os9 F$StABX ;Write that digit to user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
204 puls d,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
205
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
206 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
207 * FUNCTION CalcNum
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
208 * PURPOSE Converts ASCII number in user space to binary
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
209 * TAKES Buf (in user space) = ASCII number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
210 * GIVES B = number converted
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
211 * X = points to first nonnumeric character
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
212 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
213 CalcNum equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
214 pshs a ;Save register
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
215 leax Buf,u ;Get pointer to buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
216 clrb ;Set accumulator to zero
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
217 NextDig bsr LoadDig ;Get digit from user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
218 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
219 bmi CalcBye ;If so, return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
220 cmpa #9 ;Is the digit more than nine?
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
221 bhi CalcBye ;If so, return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
222 pshs a ;Save the digit while we multiply
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
223 lda #10 ;Multiply current number by 10
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
224 mul ;Do it
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
225 addb ,s+ ;Add new digit to number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
226 leax 1,x ;Advance X to next digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
227 bra NextDig ;Go get the next digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
228 CalcBye puls a,pc ;Restore register and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
229
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
230 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
231 * FUNCTION LoadDig
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
232 * PURPOSE Get digit from user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
233 * TAKES X = pointer to digit in user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
234 * GIVES A = digit in user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
235 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
236 LoadDig equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
237 pshs b ;Save register
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
238 ldb P$Task,y ;Get user process task number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
239 os9 F$LdABX ;Get digit
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
240 puls b,pc ;Restore register and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
241
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 * FUNCTION PrinMsg
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
244 * PURPOSE Prints out the Error #xxx message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
245 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
246 PrinMsg equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
247 pshs y,x,a ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
248 lda P$Path+2,y ;Get StdErr path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
249 leax Buf,u ;Get pointer to message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
250 ldy #ErrLen ;Maximum ErrLen characters to print
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
251 os9 I$Write ;Write out error message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
252 puls a,x,y,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
253
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 * FUNCTION DoCR
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
256 * PURPOSE Prints a carriage return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
257 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
258 DoCR equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
259 pshs x,d ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
260 ldb P$Task,y ;Get user task number
1748
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
261 lda #C$CR ;Load A with a CR
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
262 leax Buf,u ;Get pointer to buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
263 os9 F$StABX ;Move the CR to the buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
264 bsr PrinBuf ;Go print it
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
265 puls d,x,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
266
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
267 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
268 * FUNCTION PrinBuf
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
269 * PURPOSE Prints out the string from user space
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
270 * TAKES X (in user space) = String to print
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
271 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
272 PrinBuf equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
273 pshs y,a ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
274 lda P$Path+2,y ;Get StdErr path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
275 ldy #BufLen ;Maximum BufLen characters to print
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
276 os9 I$WritLn ;Write out message
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
277 puls a,y,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
278
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
279 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
280 * FUNCTION RdBuf
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
281 * 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
282 * TAKES A = path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
283 * GIVES Buf (in user space) = String read in
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
284 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
285 RdBuf equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
286 pshs y,x ;Save registers
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
287 leax Buf,u ;Get pointer to buffer
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
288 ldy #BufLen ;Maximum BufLen characters to read
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
289 os9 I$ReadLn ;Read in line from file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
290 puls x,y,pc ;Restore registers and return
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
291
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
292 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
293 * FUNCTION OpenFil
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
294 * PURPOSE Open path to error message file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
295 * TAKES Buf (in user space) = name of file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
296 * GIVES A = Path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
297 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
298 OpenFil equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
299 pshs x ;Save register
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
300 lda #READ. ;Open path for read access
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
301 leax Buf,u ;Get pointer to string
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
302 os9 I$Open ;Open path
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
303 puls x,pc ;Restore registers and return A
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
304
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
305 *+
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
306 * FUNCTION ClosFil
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
307 * PURPOSE Close path to error message file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
308 * TAKES A = Path number
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
309 *-
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
310 ClosFil equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
311 os9 I$Close ;Close file
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
312 rts ;Return
1587
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1482
diff changeset
313 P4Name fcc "krnp4"
1748
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
314 fcb C$CR
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
315 ErrMsg fcc "Error #000"
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
316 ErrLen equ *-ErrMsg
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
317 FilNam fcc "/dd/sys/errmsg"
1748
949d4df97cca Fixed some comments, made better use of symbolics
boisy
parents: 1668
diff changeset
318 fcb C$CR
747
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
319 FilLen equ *-FilNam
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
320
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
321 emod
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
322 eom equ *
27033c1dd023 Moved os9p3 and os9p4 to OS-9 Level Two distribution
boisy
parents:
diff changeset
323 end