annotate level2/modules/cc3go.asm @ 1214:701f6a80163f

bootscripts and bootlists added
author boisy
date Sat, 28 Jun 2003 18:43:08 +0000
parents e555626fd781
children 292efcec1926
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * CC3Go - Kickstart program module
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 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
752
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
8 * 5 Taken from OS-9 L2 Tandy distribution and BGP 98/10/12
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9 * modified banner for V3
752
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
10 * 5r2 Fixed fork behavior so that if 'shell startup' BGP 03/01/08
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
11 * fails, system doesn't jmp to Crash, but tries
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
12 * AutoEx instead. Also changed /DD back to /H0
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
13 * for certain boot floppy cases.
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
14
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 nam CC3Go
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 ttl Kickstart program module
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
19 IFP1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 use defsfile
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
21 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 atrv set ReEnt+rev
752
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
25 rev set $02
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 edition set $05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u0000 rmb 32
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u0020 rmb 42
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u004A rmb 33
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u006B rmb 6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0071 rmb 655
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 name fcs /CC3Go/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39
384
850b16b2aa76 cc3go_rom now folded into cc3go... Makefile modified to adjust
boisy
parents: 372
diff changeset
40 Banner
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
41 IFNE NitrOS9
388
81ae11488745 Made changes to output
boisy
parents: 384
diff changeset
42 fcc /NitrOS-9 Level Two Vr. 0/
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
43 ELSE
388
81ae11488745 Made changes to output
boisy
parents: 384
diff changeset
44 fcc / OS-9 Level Two Vr. 0/
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
45 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 fcb 48+OS9Vrsn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 fcc /.0/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 fcb 48+OS9Major
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 fcc /.0/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 fcb 48+OS9Minor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 fcb C$CR,C$LF
1214
701f6a80163f bootscripts and bootlists added
boisy
parents: 1192
diff changeset
52 fcc " Release Date: 07/01/2003"
372
b3bfa479f8d0 scfdefs is now included from level2v3/defsfile and all references to it
boisy
parents: 0
diff changeset
53 fcb C$CR,C$LF
388
81ae11488745 Made changes to output
boisy
parents: 384
diff changeset
54 fcc / "A CoCo Community Project"/
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 fcb C$CR,C$LF
388
81ae11488745 Made changes to output
boisy
parents: 384
diff changeset
56 fcc / Visit us on the web:/
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 fcb C$CR,C$LF
388
81ae11488745 Made changes to output
boisy
parents: 384
diff changeset
58 fcc !http://cocoos9.sourceforge.net/!
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 fcb C$CR,C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 BannLen equ *-Banner
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
62 IFEQ ROM
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
63 DefDev equ *
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
64 IFNE DD
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
65 fcc "/DD"
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
66 ELSE
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
67 fcc "/H0"
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
68 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 fcb C$CR
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
70 HDDev equ *
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
71 IFNE DD
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
72 fcc "/DD/"
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
73 ELSE
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
74 fcc "/H0/"
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
75 ENDC
752
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
76 ExecDir fcc "CMDS"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 fcc ",,,,,"
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
79 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 Shell fcc "Shell"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 fcc ",,,,,"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 AutoEx fcc "AutoEx"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 fcc ",,,,,"
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
86 IFEQ ROM
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 Startup fcc "STARTUP -P"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 fcc ",,,,,"
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
90 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 ShellPrm fcc "i=/1"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 CRtn fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 fcc ",,,,,"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 ShellPL equ *-ShellPrm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95
1028
dd0ed5ec3106 Updated default time
boisy
parents: 1025
diff changeset
96 DefTime fcb 103,3,07,00,00,59
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 start leax >IcptRtn,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 os9 F$Icpt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 os9 F$ID
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 ldb #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 os9 F$SPrior
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 leax >Banner,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 ldy #BannLen
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 lda #$01 standard output
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 os9 I$Write write out banner
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 leax >DefTime,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 os9 F$STime set time to default
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
109 IFEQ ROM
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 leax >ExecDir,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 lda #EXEC.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 os9 I$ChgDir change exec. dir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 leax >DefDev,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 lda #READ.+WRITE.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 os9 I$ChgDir change data dir.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 bcs L0125
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 leax >HDDev,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 lda #EXEC.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 os9 I$ChgDir change exec. dir to HD
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
120 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 L0125 pshs u,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 os9 F$ID
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 bcs L01A9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 leax ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 os9 F$GPrDsc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 bcs L01A9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 leay ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 os9 F$MapBlk
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 bcs L01A9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 * Set flag for Color BASIC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 lda #$55
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 sta <D.CBStrt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 * Copy our default I/O ptrs to the system process
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 ldd <D.SysPrc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 leau d,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 leau <P$DIO,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 leay <P$DIO,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 ldb #DefIOSiz-1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 L0151 lda b,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 sta b,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 bpl L0151
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
145 IFEQ ROM
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 * Fork shell startup here
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 leax >Shell,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 leau >Startup,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 ldd #256
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 ldy #16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 os9 F$Fork
752
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
152 bcs DoAuto
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 os9 F$Wait
983
03033eef4b93 Made source look better
boisy
parents: 755
diff changeset
154 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 * Fork AutoEx here
752
9e166adbc547 Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots.
boisy
parents: 741
diff changeset
156 DoAuto leax >AutoEx,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 leau >CRtn,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 ldd #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 ldy #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 os9 F$Fork
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 bcs L0186
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 os9 F$Wait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 L0186 puls u,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 leax >ShellPrm,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 leay ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 ldb #ShellPL
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 L0190 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 sta ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 bne L0190
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 * Fork final shell here
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 leax >Shell,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 ldd #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 ldy #ShellPL
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 os9 F$Chain
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 L01A5 ldb #$06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 bra Crash
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 L01A9 ldb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 Crash clr $FFA8 turn off disk motor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 jmp <D.Crash
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 IcptRtn rti
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 end