Mercurial > hg > Members > kono > nitros9-code
annotate level1/modules/sysgo.asm @ 1071:853a796a1bcd
Removed logbook
author | boisy |
---|---|
date | Mon, 31 Mar 2003 14:10:56 +0000 |
parents | dd0ed5ec3106 |
children | 6264431d0c88 |
rev | line source |
---|---|
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 |
256 | 11 * 14 Updated to reflect new release, changed /H0 BGP 02/07/19 |
12 * to /DD | |
274 | 13 * 15 Merged ROM and non-ROM sysgos, removed 'tsmon' BGP 02/07/19 |
14 * and added 'AutoEx' feature ala Level Two | |
0 | 15 |
16 nam SysGo | |
17 ttl OS-9 Level One 2 SysGo | |
18 | |
588 | 19 IFP1 |
0 | 20 use defsfile |
21 use scfdefs | |
588 | 22 ENDC |
0 | 23 |
24 tylg set Systm+Objct | |
25 atrv set ReEnt+rev | |
26 rev set $01 | |
274 | 27 edition set 15 |
0 | 28 |
29 mod eom,name,tylg,atrv,start,size | |
30 | |
31 dataarea rmb 200 | |
32 size equ . | |
33 | |
34 name fcs /SysGo/ | |
35 fcb edition | |
36 | |
37 * default OS-9 priority | |
38 DefPrior set 128 | |
39 | |
1003 | 40 BootMsg fcc !OS-9 LEVEL ONE VR. 0! |
0 | 41 fcb 48+OS9Vrsn |
1003 | 42 fcc !.0! |
0 | 43 fcb 48+OS9Major |
1003 | 44 fcc !.0! |
0 | 45 fcb 48+OS9Minor |
46 fdb C$CR,C$LF | |
274 | 47 |
48 * For ROM version, cut down on verbage | |
588 | 49 IFNE DiskGo |
1025
a20d2fd36cfa
Releases of all OS-9 packages are now under a common version number
boisy
parents:
1018
diff
changeset
|
50 fcc !Release Date: 03/07/2003! |
591 | 51 fcb C$CR,C$LF |
52 fcc !"A CoCo Community Project"! | |
53 fcb C$CR,C$LF | |
1003 | 54 fcc !Visit us on the web:! |
591 | 55 fcb C$CR,C$LF |
1003 | 56 fcc !http://cocoos9.sourceforge.net! |
591 | 57 fcb C$CR,C$LF |
588 | 58 ENDC |
274 | 59 |
0 | 60 fcb C$LF |
61 MsgEnd equ * | |
62 | |
588 | 63 IFNE DiskGo |
256 | 64 ChdDev fcc "/DD" |
0 | 65 fcb C$CR |
256 | 66 ChxDev fcc "/DD/" |
67 ChxPath fcc "CMDS" | |
0 | 68 fcb C$CR |
1003 | 69 * fcc ",,,,,,,,,," |
588 | 70 ENDC |
0 | 71 |
72 Shell fcc "Shell" | |
274 | 73 CrRtn fcb C$CR |
74 | |
75 AutoEx fcc "AutoEx" | |
0 | 76 fcb C$CR |
77 | |
588 | 78 IFNE DiskGo |
256 | 79 Startup fcc "startup -p" |
0 | 80 fcb C$CR |
81 fcc ",,,,,,,,,," | |
252 | 82 StartupL equ *-Startup |
588 | 83 ENDC |
0 | 84 |
85 * Default time packet | |
274 | 86 * YY MM DD HH MM SS |
1028 | 87 TimePckt fcb 103,03,07,00,00,59 |
0 | 88 |
252 | 89 * BASIC reset code |
0 | 90 BasicRst fcb $55 |
252 | 91 neg <$0074 |
76 | 92 nop |
93 clr >$FF03 | |
94 nop | |
95 nop | |
252 | 96 sta >$FFDF turn off ROM mode |
97 jmp >$EF0E jump to boot | |
98 BasicRL equ *-BasicRst | |
0 | 99 |
100 * SysGo entry point | |
101 start leax >IcptRtn,pcr | |
102 os9 F$Icpt | |
103 leax >BasicRst,pcr | |
252 | 104 ldu #D.CBStrt |
105 ldb #BasicRL | |
0 | 106 CopyLoop lda ,x+ |
107 sta ,u+ | |
108 decb | |
109 bne CopyLoop | |
110 | |
111 * Print boot message | |
112 leax >BootMsg,pcr | |
113 ldy #MsgEnd-BootMsg | |
114 lda #$01 | |
115 os9 I$Write | |
116 leax >TimePckt,pcr | |
117 os9 F$STime | |
274 | 118 |
588 | 119 IFNE DiskGo |
0 | 120 leax >ChxPath,pcr |
252 | 121 lda #EXEC. |
0 | 122 os9 I$ChgDir |
123 leax >ChdDev,pcr | |
252 | 124 lda #UPDAT. |
0 | 125 os9 I$ChgDir |
126 bcs DoStrtup | |
127 leax >ChxDev,pcr | |
252 | 128 lda #EXEC. |
0 | 129 os9 I$ChgDir |
130 bcc DoStrtup | |
588 | 131 ENDC |
0 | 132 |
133 * Set priority and do startup file | |
134 DoStrtup os9 F$ID | |
135 ldb #DefPrior | |
136 os9 F$SPrior | |
274 | 137 |
588 | 138 IFNE DiskGo |
274 | 139 * First, do startup |
0 | 140 leax >Shell,pcr |
141 leau >Startup,pcr | |
252 | 142 ldd #256 |
143 ldy #StartupL | |
0 | 144 os9 F$Fork |
145 bcs DeadEnd | |
146 os9 F$Wait | |
588 | 147 ENDC |
0 | 148 |
274 | 149 * Second, attempt to find AutoEx |
150 FrkAuto leax >AutoEx,pcr | |
151 leau >CrRtn,pcr | |
152 ldd #256 | |
153 ldy #1 | |
154 os9 F$Fork | |
281
dc8e5781c23f
Fixed small goof in sysgo where AutoEx went to dead wait upon failure.
boisy
parents:
274
diff
changeset
|
155 bcs FrkShell |
274 | 156 os9 F$Wait |
157 | |
158 * Third, do Shell | |
0 | 159 FrkShell leax >Shell,pcr |
252 | 160 ldd #256 |
0 | 161 ldy #$0000 |
162 os9 F$Fork | |
163 bcs DeadEnd | |
164 os9 F$Wait | |
165 bcc FrkShell | |
274 | 166 |
0 | 167 DeadEnd bra DeadEnd |
168 | |
169 * Intercept routine | |
170 IcptRtn rti | |
171 | |
172 emod | |
173 eom equ * | |
174 end |