annotate level1/modules/sysgo.asm @ 1724:f389c6bca482

New clock2_*.asm files split from single clock2.asm for more source clarity
author boisy
date Fri, 20 Aug 2004 11:11:58 +0000
parents c4873555b4b7
children 0af3f5f84033
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.
1462
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
19 *
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
20 * 5r3 2003/12/14 Boisy G. Pitre
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
21 * Added SHIFT key check to prevent startup/autoex from starting if
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
22 * held down. Gene Heskett, this Bud's for you.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 nam SysGo
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
25 ttl Kickstart program module
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
27 IFP1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 use scfdefs
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
30 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
32 tylg set Prgrm+Objct
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 atrv set ReEnt+rev
1462
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
34 rev set $03
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
35 edition set $05
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
39 u0000 rmb 32
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
40 u0020 rmb 42
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
41 u004A rmb 33
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
42 u006B rmb 6
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
43 u0071 rmb 655
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 name fcs /SysGo/
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
47 fcb edition
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
48
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
49 * Default process priority
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
50 DefPrior set 128
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
52 Banner equ *
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
53 fcc "NitrOS-9/"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
54 IFNE H6309
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
55 fcc /6309 /
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
56 ELSE
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
57 fcc /6809 /
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
58 ENDC
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
59 fcc /Level /
1519
e54480a359e4 Update from Rodney
boisy
parents: 1505
diff changeset
60 fcb '0+Level
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1316
diff changeset
61 fcc / V0/
1519
e54480a359e4 Update from Rodney
boisy
parents: 1505
diff changeset
62 fcb '0+NOS9Vrsn
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
63 fcc /.0/
1519
e54480a359e4 Update from Rodney
boisy
parents: 1505
diff changeset
64 fcb '0+NOS9Major
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
65 fcc /.0/
1519
e54480a359e4 Update from Rodney
boisy
parents: 1505
diff changeset
66 fcb '0+NOS9Minor
1666
64d9ab34e898 Added copyright string
boisy
parents: 1651
diff changeset
67 fcb C$CR,C$LF
64d9ab34e898 Added copyright string
boisy
parents: 1651
diff changeset
68 fcc /(C) 2004 The NitrOS-9 Project/
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
69 fcb C$CR,C$LF
1651
d696f50c0c67 updated standard.bl files with emulator clocks.
boisy
parents: 1642
diff changeset
70 IFNE DEVEL
d696f50c0c67 updated standard.bl files with emulator clocks.
boisy
parents: 1642
diff changeset
71 fcc "** DEVELOPMENT BUILD **"
d696f50c0c67 updated standard.bl files with emulator clocks.
boisy
parents: 1642
diff changeset
72 fcb C$CR,C$LF
d696f50c0c67 updated standard.bl files with emulator clocks.
boisy
parents: 1642
diff changeset
73 fcc "** NOT FOR DISTRIBUTION! **"
1615
dc3272e71faa rb1773.asm: updated comments
boisy
parents: 1587
diff changeset
74 fcb C$CR,C$LF
dc3272e71faa rb1773.asm: updated comments
boisy
parents: 1587
diff changeset
75 ENDC
274
00fe04149e6e Added AutoEx feature, ala Level Two
boisy
parents: 272
diff changeset
76 * For ROM version, cut down on verbage
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
77 IFEQ ROM
1651
d696f50c0c67 updated standard.bl files with emulator clocks.
boisy
parents: 1642
diff changeset
78 IFNE DEVEL
1642
31cba223dc92 sysgo.asm has new dts and dtb pseudo ops
boisy
parents: 1623
diff changeset
79 dts
1651
d696f50c0c67 updated standard.bl files with emulator clocks.
boisy
parents: 1642
diff changeset
80 ELSE
1701
c4873555b4b7 Final change -- sysgo release date updated
boisy
parents: 1694
diff changeset
81 fcc "Release Date: 08/03/2004"
1651
d696f50c0c67 updated standard.bl files with emulator clocks.
boisy
parents: 1642
diff changeset
82 ENDC
591
40cc40e9ff5f New sysgo
boisy
parents: 588
diff changeset
83 fcb C$CR,C$LF
1419
98ae4a4b3e1c Makefiles now use -q with os9 format
boisy
parents: 1364
diff changeset
84 fcc !http://www.nitros9.org!
591
40cc40e9ff5f New sysgo
boisy
parents: 588
diff changeset
85 fcb C$CR,C$LF
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
86 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 fcb C$LF
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
88 BannLen equ *-Banner
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
90 IFEQ ROM
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
91 DefDev 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
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 fcb C$CR
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
98 HDDev equ *
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
99 IFNE DD
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
100 fcc "/DD/"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
101 ELSE
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
102 fcc "/H0/"
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
103 ENDC
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
104 ExecDir fcc "CMDS"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 fcb C$CR
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
106 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 Shell fcc "Shell"
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
109 fcb C$CR
274
00fe04149e6e Added AutoEx feature, ala Level Two
boisy
parents: 272
diff changeset
110 AutoEx fcc "AutoEx"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
113 IFEQ ROM
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
114 Startup fcc "startup -p"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 fcb C$CR
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
116 StartupL equ *-Startup
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
117 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
119 ShellPrm equ *
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
120 IFGT Level-1
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
121 fcc "i=/1"
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
122 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
123 CRtn fcb C$CR
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
124 ShellPL equ *-ShellPrm
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
125
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 * Default time packet
1642
31cba223dc92 sysgo.asm has new dts and dtb pseudo ops
boisy
parents: 1623
diff changeset
127 DefTime dtb
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
129 IFEQ Level-1
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
130 * BASIC reset code
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 BasicRst fcb $55
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
132 neg <$0074
76
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
133 nop
1300
636cabe76c6e Now Bt.Size is defined for Level One
boisy
parents: 1287
diff changeset
134 clr >PIA0Base+3
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
135 nop
76
6f72b77131c0 Disassembled reset code a little
boisy
parents: 0
diff changeset
136 nop
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
137 sta >$FFDF turn off ROM mode
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
138 jmp >Bt.Start+2 jump to boot
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
139 BasicRL equ *-BasicRst
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
140 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
142
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
143 * SysGo Entry Point
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 start leax >IcptRtn,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 os9 F$Icpt
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
146 * Set priority of this process
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
147 os9 F$ID
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
148 ldb #DefPrior
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
149 os9 F$SPrior
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
150 * Show banner
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
151 leax >Banner,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
152 ldy #BannLen
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
153 lda #$01 standard output
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
154 os9 I$Write write out banner
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
155 * Set default time
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
156 leax >DefTime,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
157 os9 F$STime set time to default
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
158 IFEQ ROM
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
159 * Change EXEC and DATA dirs
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
160 leax >ExecDir,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
161 lda #EXEC.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
162 os9 I$ChgDir change exec. dir
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
163 leax >DefDev,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
164 lda #READ.+WRITE.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
165 os9 I$ChgDir change data dir.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
166 bcs L0125
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
167 leax >HDDev,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
168 lda #EXEC.
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
169 os9 I$ChgDir change exec. dir to HD
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
170 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
171
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
172 * Setup BASIC code
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
173 L0125 equ *
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
174 pshs u,y
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
175 IFEQ Level-1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 leax >BasicRst,pcr
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
177 ldu #D.CBStrt
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
178 ldb #BasicRL
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
179 CopyLoop lda ,x+
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 sta ,u+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 bne CopyLoop
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
183 ELSE
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
184 os9 F$ID
1467
6f2feac7ae28 Fixed problem with branch
boisy
parents: 1464
diff changeset
185 lbcs L01A9
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
186 leax ,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
187 os9 F$GPrDsc
1467
6f2feac7ae28 Fixed problem with branch
boisy
parents: 1464
diff changeset
188 lbcs L01A9
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
189 leay ,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
190 ldx #$0000
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
191 ldb #$01
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
192 os9 F$MapBlk
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
193 bcs L01A9
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
195 lda #$55 set flag for Color BASIC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
196 sta <D.CBStrt,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
197 * Copy our default I/O ptrs to the system process
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
198 ldd <D.SysPrc,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
199 leau d,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
200 leau <P$DIO,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
201 leay <P$DIO,y
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
202 ldb #DefIOSiz-1
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
203 L0151 lda b,y
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
204 sta b,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
205 decb
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
206 bpl L0151
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
207 ENDC
274
00fe04149e6e Added AutoEx feature, ala Level Two
boisy
parents: 272
diff changeset
208
1228
0a49ee6bbd40 sysgo_dd and sysgo_h0 are now made
boisy
parents: 1222
diff changeset
209 IFEQ ROM
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
210 * Fork shell startup here
1462
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
211 * Added 12/14/03: If SHIFT is held down, startup is not run
1464
eeaf8ff6420d stdout is needed, not stdin for SS.KySns
boisy
parents: 1462
diff changeset
212 lda #$01 standard output
1462
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
213 ldb #SS.KySns
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
214 os9 I$GetStt
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
215 bcs DoStartup
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
216 bita #SHIFTBIT SHIFT key down?
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
217 bne L0186 Yes, don't to startup or autoex
062d65d5c132 Added check for SHIFT key which, if down, bypasses startup and AutoEx
boisy
parents: 1449
diff changeset
218 DoStartup leax >Shell,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 leau >Startup,pcr
252
06775bf93f3a sysgo source commented additionally
boisy
parents: 201
diff changeset
220 ldd #256
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
221 ldy #StartupL
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
222 os9 F$Fork
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
223 bcs DoAuto
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
224 os9 F$Wait
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
225 ENDC
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
226 * Fork AutoEx here
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
227 DoAuto leax >AutoEx,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
228 leau >CRtn,pcr
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
229 ldd #$0100
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
230 ldy #$0001
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 os9 F$Fork
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
232 bcs L0186
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 os9 F$Wait
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
234 L0186 equ *
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
235 puls u,y
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
236 FrkShell leax >ShellPrm,pcr
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
237 leay ,u
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
238 ldb #ShellPL
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
239 L0190 lda ,x+
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
240 sta ,y+
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
241 decb
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
242 bne L0190
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
243 * Fork final shell here
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
244 leax >Shell,pcr
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
245 lda #$01 D = 256 (B already 0 from above)
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
246 ldy #ShellPL
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
247 IFGT Level-1
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
248 os9 F$Chain
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
249 ldb #$06
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
250 bra Crash
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
251 L01A9 ldb #$04
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
252 Crash clr >DPort+$08 turn off disk motor
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1300
diff changeset
253 jmp <D.Crash
1316
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
254 ELSE
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
255 os9 F$Fork
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
256 bcs DeadEnd
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
257 os9 F$Wait
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
258 bcc FrkShell
50e9ec54e7e6 Fixed a problem in OS-9 Level One SysGo
boisy
parents: 1315
diff changeset
259 DeadEnd bra DeadEnd
588
e70529a05aca Cleanup for Phoenix Release
boisy
parents: 365
diff changeset
260 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 IcptRtn rti
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 end