0
|
1 ********************************************************************
|
|
2 * SysGo - OS-9 Level One 2 SysGo
|
|
3 *
|
|
4 * $Id$
|
|
5 *
|
|
6 * Ed. Comments Who YY/MM/DD
|
|
7 * ------------------------------------------------------------------
|
201
|
8 * 12 From Tandy OS-9 Level One VR 02.00.00
|
|
9 * 13 Incremented version number to reflect Y2K BGP 99/05/11
|
0
|
10 * fixes
|
|
11
|
|
12 nam SysGo
|
|
13 ttl OS-9 Level One 2 SysGo
|
|
14
|
|
15 ifp1
|
|
16 use defsfile
|
|
17 use scfdefs
|
|
18 endc
|
|
19
|
|
20 tylg set Systm+Objct
|
|
21 atrv set ReEnt+rev
|
|
22 rev set $01
|
|
23 edition set 13
|
|
24
|
|
25 mod eom,name,tylg,atrv,start,size
|
|
26
|
|
27 dataarea rmb 200
|
|
28 size equ .
|
|
29
|
|
30 name fcs /SysGo/
|
|
31 fcb edition
|
|
32
|
|
33 * default OS-9 priority
|
|
34 DefPrior set 128
|
|
35
|
|
36 BootMsg fcc "OS-9 LEVEL ONE VR. 0"
|
|
37 fcb 48+OS9Vrsn
|
|
38 fcc ".0"
|
|
39 fcb 48+OS9Major
|
|
40 fcc ".0"
|
|
41 fcb 48+OS9Minor
|
|
42 fdb C$CR,C$LF
|
|
43 fcc "COPR. 1980 BY MOTOROLA INC. AND"
|
|
44 fdb C$CR,C$LF
|
|
45 fcc "MICROWARE SYSTEMS CORP."
|
|
46 fdb C$CR,C$LF
|
|
47 fcc "LICENSED TO TANDY CORP."
|
|
48 fdb C$CR,C$LF
|
|
49 fcc "ALL RIGHTS RESERVED."
|
|
50 fdb C$CR,C$LF
|
|
51 fcb C$LF
|
|
52 MsgEnd equ *
|
|
53
|
|
54 ChdDev fcc "/H0"
|
|
55 fcb C$CR
|
|
56 ChxDev fcc "/H0/"
|
|
57 ChxPath fcc "Cmds"
|
|
58 fcb C$CR
|
|
59 fcc ",,,,,,,,,,"
|
|
60
|
|
61 Shell fcc "Shell"
|
|
62 fcb C$CR
|
|
63
|
|
64 fcc "TSMON"
|
|
65 fcb C$CR
|
|
66 Startup fcc "STARTUP -P"
|
|
67 fcb C$CR
|
|
68 fcc ",,,,,,,,,,"
|
|
69
|
|
70 * Default time packet
|
|
71 * YY MM DD HH MM SS
|
|
72 TimePckt fcb 85,06,01,00,00,00
|
|
73
|
|
74 BasicRst fcb $55
|
|
75 fcb $00
|
|
76 fcb $74
|
76
|
77 nop
|
|
78 clr >$FF03
|
|
79 nop
|
|
80 nop
|
|
81 sta >$FFDF
|
|
82 jmp >$EF0E
|
0
|
83
|
|
84 * SysGo entry point
|
|
85 start leax >IcptRtn,pcr
|
|
86 os9 F$Icpt
|
|
87 leax >BasicRst,pcr
|
|
88 ldu #$0071
|
|
89 ldb #$0F
|
|
90 CopyLoop lda ,x+
|
|
91 sta ,u+
|
|
92 decb
|
|
93 bne CopyLoop
|
|
94
|
|
95 * Print boot message
|
|
96 leax >BootMsg,pcr
|
|
97 ldy #MsgEnd-BootMsg
|
|
98 lda #$01
|
|
99 os9 I$Write
|
|
100 leax >TimePckt,pcr
|
|
101 os9 F$STime
|
|
102 leax >ChxPath,pcr
|
|
103 lda #$04
|
|
104 os9 I$ChgDir
|
|
105 leax >ChdDev,pcr
|
|
106 lda #$03
|
|
107 os9 I$ChgDir
|
|
108 bcs DoStrtup
|
|
109 leax >ChxDev,pcr
|
|
110 lda #$04
|
|
111 os9 I$ChgDir
|
|
112 bcc DoStrtup
|
|
113
|
|
114 * Set priority and do startup file
|
|
115 DoStrtup os9 F$ID
|
|
116 ldb #DefPrior
|
|
117 os9 F$SPrior
|
|
118 leax >Shell,pcr
|
|
119 leau >Startup,pcr
|
|
120 ldd #$0100
|
|
121 ldy #$0015
|
|
122 os9 F$Fork
|
|
123 bcs DeadEnd
|
|
124 os9 F$Wait
|
|
125
|
|
126 FrkShell leax >Shell,pcr
|
|
127 ldd #$0100
|
|
128 ldy #$0000
|
|
129 os9 F$Fork
|
|
130 bcs DeadEnd
|
|
131 os9 F$Wait
|
|
132 bcc FrkShell
|
|
133 DeadEnd bra DeadEnd
|
|
134
|
|
135 * Intercept routine
|
|
136 IcptRtn rti
|
|
137
|
|
138 emod
|
|
139 eom equ *
|
|
140 end
|