Mercurial > hg > Members > kono > nitros9-code
annotate level2/modules/cc3go.asm @ 473:091a1e4ae051
entered: chdir chmod qsort strass toupper tsleep wait
author | roug |
---|---|
date | Sun, 06 Oct 2002 09:10:36 +0000 |
parents | 279247d74138 |
children | d00fd02a9de5 |
rev | line source |
---|---|
0 | 1 ******************************************************************** |
2 * CC3Go - Kickstart program module | |
3 * | |
4 * $Id$ | |
5 * | |
6 * Ed. Comments Who YY/MM/DD | |
7 * ------------------------------------------------------------------ | |
8 * 5 Taken from OS-9 L2 Tandy distribution and BGP 98/10/12 | |
9 * modified banner for V3 | |
10 | |
11 nam CC3Go | |
12 ttl Kickstart program module | |
13 | |
14 ifp1 | |
15 use defsfile | |
16 endc | |
17 | |
18 tylg set Prgrm+Objct | |
19 atrv set ReEnt+rev | |
20 rev set $01 | |
21 edition set $05 | |
22 | |
23 mod eom,name,tylg,atrv,start,size | |
24 | |
25 u0000 rmb 32 | |
26 u0020 rmb 42 | |
27 u004A rmb 33 | |
28 u006B rmb 6 | |
29 u0071 rmb 655 | |
30 size equ . | |
31 | |
32 name fcs /CC3Go/ | |
33 fcb edition | |
34 | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
35 Banner |
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
36 ifne NitrOS9 |
388 | 37 fcc /NitrOS-9 Level Two Vr. 0/ |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
38 else |
388 | 39 fcc / OS-9 Level Two Vr. 0/ |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
40 endc |
0 | 41 fcb 48+OS9Vrsn |
42 fcc /.0/ | |
43 fcb 48+OS9Major | |
44 fcc /.0/ | |
45 fcb 48+OS9Minor | |
46 fcb C$CR,C$LF | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
47 ifne NitrOS9 |
418 | 48 fcc " ORION BETA1 Release 09/22/2002" |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
49 else |
388 | 50 fcc " ARIES BETA2 Release ??/??/2002" |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
51 endc |
372
b3bfa479f8d0
scfdefs is now included from level2v3/defsfile and all references to it
boisy
parents:
0
diff
changeset
|
52 fcb C$CR,C$LF |
388 | 53 fcc / "A CoCo Community Project"/ |
0 | 54 fcb C$CR,C$LF |
388 | 55 fcc / Visit us on the web:/ |
0 | 56 fcb C$CR,C$LF |
388 | 57 fcc !http://cocoos9.sourceforge.net/! |
0 | 58 fcb C$CR,C$LF |
59 fcb C$LF | |
60 BannLen equ *-Banner | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
61 ifeq ROM |
0 | 62 DefDev fcc "/H0" |
63 fcb C$CR | |
64 HDDev fcc "/H0/" | |
65 ExecDir fcc "Cmds" | |
66 fcb C$CR | |
67 fcc ",,,,," | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
68 endc |
0 | 69 Shell fcc "Shell" |
70 fcb C$CR | |
71 fcc ",,,,," | |
72 AutoEx fcc "AutoEx" | |
73 fcb C$CR | |
74 fcc ",,,,," | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
75 ifeq ROM |
0 | 76 Startup fcc "STARTUP -P" |
77 fcb C$CR | |
78 fcc ",,,,," | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
79 endc |
0 | 80 ShellPrm fcc "i=/1" |
81 CRtn fcb C$CR | |
82 fcc ",,,,," | |
83 ShellPL equ *-ShellPrm | |
84 | |
439 | 85 DefTime fcb 101,9,11,08,59,00 |
0 | 86 |
87 start leax >IcptRtn,pcr | |
88 os9 F$Icpt | |
89 os9 F$ID | |
90 ldb #$80 | |
91 os9 F$SPrior | |
92 leax >Banner,pcr | |
93 ldy #BannLen | |
94 lda #$01 standard output | |
95 os9 I$Write write out banner | |
96 leax >DefTime,pcr | |
97 os9 F$STime set time to default | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
98 ifeq ROM |
0 | 99 leax >ExecDir,pcr |
100 lda #EXEC. | |
101 os9 I$ChgDir change exec. dir | |
102 leax >DefDev,pcr | |
103 lda #READ.+WRITE. | |
104 os9 I$ChgDir change data dir. | |
105 bcs L0125 | |
106 leax >HDDev,pcr | |
107 lda #EXEC. | |
108 os9 I$ChgDir change exec. dir to HD | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
109 endc |
0 | 110 L0125 pshs u,y |
111 os9 F$ID | |
112 bcs L01A9 | |
113 leax ,u | |
114 os9 F$GPrDsc | |
115 bcs L01A9 | |
116 leay ,u | |
117 ldx #$0000 | |
118 ldb #$01 | |
119 os9 F$MapBlk | |
120 bcs L01A9 | |
121 * Set flag for Color BASIC | |
122 lda #$55 | |
123 sta <D.CBStrt,u | |
124 * Copy our default I/O ptrs to the system process | |
125 ldd <D.SysPrc,u | |
126 leau d,u | |
127 leau <P$DIO,u | |
128 leay <P$DIO,y | |
129 ldb #DefIOSiz-1 | |
130 L0151 lda b,y | |
131 sta b,u | |
132 decb | |
133 bpl L0151 | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
134 ifeq ROM |
0 | 135 * Fork shell startup here |
136 leax >Shell,pcr | |
137 leau >Startup,pcr | |
138 ldd #256 | |
139 ldy #16 | |
140 os9 F$Fork | |
141 bcs L01A5 | |
142 os9 F$Wait | |
384
850b16b2aa76
cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents:
372
diff
changeset
|
143 endc |
0 | 144 * Fork AutoEx here |
145 leax >AutoEx,pcr | |
146 leau >CRtn,pcr | |
147 ldd #$0100 | |
148 ldy #$0001 | |
149 os9 F$Fork | |
150 bcs L0186 | |
151 os9 F$Wait | |
152 L0186 puls u,y | |
153 leax >ShellPrm,pcr | |
154 leay ,u | |
155 ldb #ShellPL | |
156 L0190 lda ,x+ | |
157 sta ,y+ | |
158 decb | |
159 bne L0190 | |
160 * Fork final shell here | |
161 leax >Shell,pcr | |
162 ldd #$0100 | |
163 ldy #ShellPL | |
164 os9 F$Chain | |
165 L01A5 ldb #$06 | |
166 bra Crash | |
167 L01A9 ldb #$04 | |
168 Crash clr $FFA8 turn off disk motor | |
169 jmp <D.Crash | |
170 | |
171 IcptRtn rti | |
172 | |
173 emod | |
174 eom equ * | |
175 end |