annotate level1/modules/sysgo.asm @ 1363:53c50c807d55

Major move to new NitrOS-9 project
author boisy
date Fri, 26 Sep 2003 12:26:10 +0000
parents 50e9ec54e7e6
children 638e8b6421c1
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
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
77 fcc /"A CoCo Community Project"/
591
40cc40e9ff5f New sysgo
boisy
parents: 588
diff changeset
78 fcb C$CR,C$LF
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
79 fcc /Visit us on the web:/
591
40cc40e9ff5f New sysgo
boisy
parents: 588
diff changeset
80 fcb C$CR,C$LF
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
81 fcc !http://www.nitros9.org/!
591
40cc40e9ff5f New sysgo
boisy
parents: 588
diff changeset
82 fcb C$CR,C$LF
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
83 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 fcb C$LF
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
85 BannLen equ *-Banner
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
87 IFEQ ROM
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
88 DefDev equ *
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
89 IFNE DD
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
90 fcc "/DD"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
91 ELSE
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
92 fcc "/H0"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
93 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 fcb C$CR
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
95 HDDev equ *
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
96 IFNE DD
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
97 fcc "/DD/"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
98 ELSE
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
99 fcc "/H0/"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
100 ENDC
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
101 ExecDir fcc "CMDS"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 fcb C$CR
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
103 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 Shell fcc "Shell"
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
106 fcb C$CR
274
00fe04149e6e Added AutoEx feature, ala Level Two
boisy
parents: 272
diff changeset
107 AutoEx fcc "AutoEx"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
110 IFEQ ROM
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
111 Startup fcc "startup -p"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 fcb C$CR
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
113 StartupL equ *-Startup
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
114 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
116 ShellPrm equ *
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
117 IFGT Level-1
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
118 fcc "i=/1"
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
119 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
120 CRtn fcb C$CR
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
121 ShellPL equ *-ShellPrm
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
122
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 * Default time packet
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
124 * YY/MM/DD HH:MM:SS
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
125 DefTime fcb 103,09,01,00,00,59
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
127 IFEQ Level-1
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
128 * BASIC reset code
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 BasicRst fcb $55
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
130 neg <$0074
76
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
131 nop
1300
636cabe76c6e Now Bt.Size is defined for Level One
boisy
parents: 1287
diff changeset
132 clr >PIA0Base+3
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
133 nop
76
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
134 nop
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
135 sta >$FFDF turn off ROM mode
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
136 jmp >Bt.Start+2 jump to boot
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
137 BasicRL equ *-BasicRst
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
138 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
140
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
141 * SysGo Entry Point
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 start leax >IcptRtn,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 os9 F$Icpt
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
144 * Set priority of this process
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
145 os9 F$ID
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
146 ldb #DefPrior
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
147 os9 F$SPrior
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
148 * Show banner
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
149 leax >Banner,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
150 ldy #BannLen
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
151 lda #$01 standard output
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
152 os9 I$Write write out banner
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
153 * Set default time
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
154 leax >DefTime,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
155 os9 F$STime set time to default
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
156 IFEQ ROM
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
157 * Change EXEC and DATA dirs
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
158 leax >ExecDir,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
159 lda #EXEC.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
160 os9 I$ChgDir change exec. dir
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
161 leax >DefDev,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
162 lda #READ.+WRITE.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
163 os9 I$ChgDir change data dir.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
164 bcs L0125
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
165 leax >HDDev,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
166 lda #EXEC.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
167 os9 I$ChgDir change exec. dir to HD
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
168 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
169
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
170 * Setup BASIC code
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
171 L0125 equ *
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
172 pshs u,y
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
173 IFEQ Level-1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 leax >BasicRst,pcr
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
175 ldu #D.CBStrt
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
176 ldb #BasicRL
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
177 CopyLoop lda ,x+
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 sta ,u+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 bne CopyLoop
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
181 ELSE
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
182 os9 F$ID
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
183 bcs L01A9
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
184 leax ,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
185 os9 F$GPrDsc
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
186 bcs L01A9
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
187 leay ,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
188 ldx #$0000
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
189 ldb #$01
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
190 os9 F$MapBlk
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
191 bcs L01A9
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
193 lda #$55 set flag for Color BASIC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
194 sta <D.CBStrt,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
195 * Copy our default I/O ptrs to the system process
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
196 ldd <D.SysPrc,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
197 leau d,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
198 leau <P$DIO,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
199 leay <P$DIO,y
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
200 ldb #DefIOSiz-1
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
201 L0151 lda b,y
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
202 sta b,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
203 decb
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
204 bpl L0151
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
205 ENDC
274
00fe04149e6e Added AutoEx feature, ala Level Two
boisy
parents: 272
diff changeset
206
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
207 IFEQ ROM
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
208 * Fork shell startup here
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 leax >Shell,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 leau >Startup,pcr
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
211 ldd #256
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
212 ldy #StartupL
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
213 os9 F$Fork
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
214 bcs DoAuto
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
215 os9 F$Wait
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
216 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
217 * Fork AutoEx here
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
218 DoAuto leax >AutoEx,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
219 leau >CRtn,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
220 ldd #$0100
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
221 ldy #$0001
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 os9 F$Fork
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
223 bcs L0186
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 os9 F$Wait
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
225 L0186 equ *
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
226 puls u,y
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
227 FrkShell leax >ShellPrm,pcr
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
228 leay ,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
229 ldb #ShellPL
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
230 L0190 lda ,x+
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
231 sta ,y+
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
232 decb
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
233 bne L0190
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
234 * Fork final shell here
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
235 leax >Shell,pcr
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
236 lda #$01 D = 256 (B already 0 from above)
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
237 ldy #ShellPL
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
238 IFGT Level-1
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
239 os9 F$Chain
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
240 ldb #$06
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
241 bra Crash
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
242 L01A9 ldb #$04
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
243 Crash clr >DPort+$08 turn off disk motor
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
244 jmp <D.Crash
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
245 ELSE
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
246 os9 F$Fork
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
247 bcs DeadEnd
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
248 os9 F$Wait
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
249 bcc FrkShell
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
250 DeadEnd bra DeadEnd
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
251 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 IcptRtn rti
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 end