annotate level1/modules/sysgo.asm @ 1417:b7b173926ea1

Changes and fixes by Robert Gault
author boisy
date Sun, 30 Nov 2003 22:25:56 +0000
parents 638e8b6421c1
children 98ae4a4b3e1c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
2 * SysGo - Kickstart program module
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
7 * Comment
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
9 * 5 1998/10/12 Boisy G. Pitre
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
10 * Taken from OS-9 L2 Tandy distribution and modified banner for V3.
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
11 *
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
12 * 5r2 2003/01/08 Boisy G. Pitre
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
13 * Fixed fork behavior so that if 'shell startup' fails, system doesn't
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
14 * jmp to Crash, but tries AutoEx instead. Also changed /DD back to /H0
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
15 * for certain boot floppy cases.
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
16 *
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
17 * 2003/09/04 Boisy G. Pitre
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
18 * Back-ported to OS-9 Level One.
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
19
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 nam SysGo
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
22 ttl Kickstart program module
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
24 IFP1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 use scfdefs
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
27 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
29 tylg set Prgrm+Objct
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 atrv set ReEnt+rev
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
31 rev set $02
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
32 edition set $05
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
36 u0000 rmb 32
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
37 u0020 rmb 42
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
38 u004A rmb 33
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
39 u006B rmb 6
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
40 u0071 rmb 655
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 name fcs /SysGo/
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
44 fcb edition
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
45
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
46 * Default process priority
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
47 DefPrior set 128
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
49 Banner equ *
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
50 fcc "NitrOS-9/"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
51 IFNE H6309
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
52 fcc /6309 /
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
53 ELSE
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
54 fcc /6809 /
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
55 ENDC
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
56 fcc /Level /
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
57 IFEQ Level-3
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
58 fcc /3/
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
59 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
60 IFEQ Level-2
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
61 fcc /2/
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
62 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
63 IFEQ Level-1
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
64 fcc /1/
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
65 ENDC
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
66 fcc / V0/
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
67 fcb 48+NOS9Vrsn
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
68 fcc /.0/
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
69 fcb 48+NOS9Major
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
70 fcc /.0/
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
71 fcb 48+NOS9Minor
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
72 fcb C$CR,C$LF
274
00fe04149e6e Added AutoEx feature, ala Level Two
boisy
parents: 272
diff changeset
73 * For ROM version, cut down on verbage
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
74 IFEQ ROM
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
75 fcc "Release Date: 10/01/2003"
591
40cc40e9ff5f New sysgo
boisy
parents: 588
diff changeset
76 fcb C$CR,C$LF
1364
638e8b6421c1 More changes
boisy
parents: 1363
diff changeset
77 fcc !www.nitros9.org!
591
40cc40e9ff5f New sysgo
boisy
parents: 588
diff changeset
78 fcb C$CR,C$LF
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
79 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 fcb C$LF
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
81 BannLen equ *-Banner
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
83 IFEQ ROM
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
84 DefDev equ *
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
85 IFNE DD
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
86 fcc "/DD"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
87 ELSE
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
88 fcc "/H0"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
89 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 fcb C$CR
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
91 HDDev equ *
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
92 IFNE DD
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
93 fcc "/DD/"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
94 ELSE
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
95 fcc "/H0/"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
96 ENDC
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
97 ExecDir fcc "CMDS"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 fcb C$CR
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
99 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 Shell fcc "Shell"
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
102 fcb C$CR
274
00fe04149e6e Added AutoEx feature, ala Level Two
boisy
parents: 272
diff changeset
103 AutoEx fcc "AutoEx"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
106 IFEQ ROM
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
107 Startup fcc "startup -p"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 fcb C$CR
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
109 StartupL equ *-Startup
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
110 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
112 ShellPrm equ *
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
113 IFGT Level-1
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
114 fcc "i=/1"
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
115 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
116 CRtn fcb C$CR
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
117 ShellPL equ *-ShellPrm
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
118
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 * Default time packet
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
120 * YY/MM/DD HH:MM:SS
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
121 DefTime fcb 103,09,01,00,00,59
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
123 IFEQ Level-1
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
124 * BASIC reset code
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 BasicRst fcb $55
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
126 neg <$0074
76
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
127 nop
1300
636cabe76c6e Now Bt.Size is defined for Level One
boisy
parents: 1287
diff changeset
128 clr >PIA0Base+3
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
129 nop
76
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
130 nop
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
131 sta >$FFDF turn off ROM mode
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
132 jmp >Bt.Start+2 jump to boot
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
133 BasicRL equ *-BasicRst
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
134 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
136
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
137 * SysGo Entry Point
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 start leax >IcptRtn,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 os9 F$Icpt
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
140 * Set priority of this process
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
141 os9 F$ID
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
142 ldb #DefPrior
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
143 os9 F$SPrior
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
144 * Show banner
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
145 leax >Banner,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
146 ldy #BannLen
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
147 lda #$01 standard output
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
148 os9 I$Write write out banner
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
149 * Set default time
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
150 leax >DefTime,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
151 os9 F$STime set time to default
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
152 IFEQ ROM
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
153 * Change EXEC and DATA dirs
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
154 leax >ExecDir,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
155 lda #EXEC.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
156 os9 I$ChgDir change exec. dir
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
157 leax >DefDev,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
158 lda #READ.+WRITE.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
159 os9 I$ChgDir change data dir.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
160 bcs L0125
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
161 leax >HDDev,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
162 lda #EXEC.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
163 os9 I$ChgDir change exec. dir to HD
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
164 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
165
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
166 * Setup BASIC code
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
167 L0125 equ *
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
168 pshs u,y
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
169 IFEQ Level-1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 leax >BasicRst,pcr
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
171 ldu #D.CBStrt
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
172 ldb #BasicRL
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
173 CopyLoop lda ,x+
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 sta ,u+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 bne CopyLoop
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
177 ELSE
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
178 os9 F$ID
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
179 bcs L01A9
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
180 leax ,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
181 os9 F$GPrDsc
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
182 bcs L01A9
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
183 leay ,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
184 ldx #$0000
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
185 ldb #$01
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
186 os9 F$MapBlk
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
187 bcs L01A9
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
189 lda #$55 set flag for Color BASIC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
190 sta <D.CBStrt,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
191 * Copy our default I/O ptrs to the system process
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
192 ldd <D.SysPrc,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
193 leau d,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
194 leau <P$DIO,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
195 leay <P$DIO,y
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
196 ldb #DefIOSiz-1
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
197 L0151 lda b,y
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
198 sta b,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
199 decb
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
200 bpl L0151
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
201 ENDC
274
00fe04149e6e Added AutoEx feature, ala Level Two
boisy
parents: 272
diff changeset
202
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
203 IFEQ ROM
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
204 * Fork shell startup here
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 leax >Shell,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 leau >Startup,pcr
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
207 ldd #256
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
208 ldy #StartupL
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
209 os9 F$Fork
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
210 bcs DoAuto
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
211 os9 F$Wait
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
212 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
213 * Fork AutoEx here
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
214 DoAuto leax >AutoEx,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
215 leau >CRtn,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
216 ldd #$0100
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
217 ldy #$0001
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 os9 F$Fork
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
219 bcs L0186
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 os9 F$Wait
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
221 L0186 equ *
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
222 puls u,y
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
223 FrkShell leax >ShellPrm,pcr
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
224 leay ,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
225 ldb #ShellPL
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
226 L0190 lda ,x+
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
227 sta ,y+
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
228 decb
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
229 bne L0190
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
230 * Fork final shell here
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
231 leax >Shell,pcr
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
232 lda #$01 D = 256 (B already 0 from above)
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
233 ldy #ShellPL
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
234 IFGT Level-1
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
235 os9 F$Chain
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
236 ldb #$06
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
237 bra Crash
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
238 L01A9 ldb #$04
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
239 Crash clr >DPort+$08 turn off disk motor
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
240 jmp <D.Crash
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
241 ELSE
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
242 os9 F$Fork
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
243 bcs DeadEnd
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
244 os9 F$Wait
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
245 bcc FrkShell
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
246 DeadEnd bra DeadEnd
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
247 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 IcptRtn rti
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 end