Mercurial > hg > Members > kono > nitros9-code
annotate level1/cmds/os9gen.asm @ 1916:fc5761a685b6
Changes to utils
author | boisy |
---|---|
date | Wed, 23 Nov 2005 00:38:05 +0000 |
parents | 4a1da412e363 |
children | 208c8e8dd175 |
rev | line source |
---|---|
0 | 1 ******************************************************************** |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
2 * OS9Gen - OS-9 bootfile generator |
0 | 3 * |
4 * $Id$ | |
5 * | |
1916 | 6 * -e = extended boot (fragmented) |
7 * -q=<path> = quick gen .. set sector zero pointing to <path> | |
8 * -r = remove pointer to boot file (does not delete file) | |
9 * -s = single drive option | |
10 * -t=<boottrack> = boot track file to use | |
11 * | |
1325
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
12 * Edt/Rev YYYY/MM/DD Modified by |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
13 * Comment |
0 | 14 * ------------------------------------------------------------------ |
1325
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
15 * 9 ????/??/?? |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
16 * From OS-9 Level Two Vr. 2.00.01. |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
17 * |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
18 * 10 2003/06/28 Boisy G. Pitre |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
19 * Added -t= option, fixed bug in single disk swap routine if key |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
20 * besides 'C' was pressed, minor optimizations. |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
21 * |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
22 * l0r2 2003/07/24 Boisy G. Pitre |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
23 * Fixed bug introduced in V03.01.03 where os9gen wouldn't write boot |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
1303
diff
changeset
|
24 * track on DS disks. |
1916 | 25 * |
26 * 11 2005/10/10 Boisy G. Pitre | |
27 * Added -e option to create fragmented bootfiles. | |
0 | 28 |
1166 | 29 nam OS9Gen |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
30 ttl OS-9 bootfile generator |
0 | 31 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
32 * Disassembled 02/07/06 13:11:11 by Disasm v1.6 (C) 1988 by RML |
0 | 33 |
912 | 34 IFP1 |
122 | 35 use defsfile |
912 | 36 ENDC |
200
e9ce43cc215e
Made major changes to headers for consistency and identification
boisy
parents:
172
diff
changeset
|
37 |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
38 DOHELP set 0 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
39 DOHD set 1 allow bootfile creation on HD |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
40 |
0 | 41 tylg set Prgrm+Objct |
42 atrv set ReEnt+rev | |
1916 | 43 rev set $00 |
44 edition set 11 | |
262
dd9e2f44b5f0
Incorporated bug fix from January 1987 Rainbow, pg 203
boisy
parents:
213
diff
changeset
|
45 |
0 | 46 mod eom,name,tylg,atrv,start,size |
200
e9ce43cc215e
Made major changes to headers for consistency and identification
boisy
parents:
172
diff
changeset
|
47 |
912 | 48 org 0 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
49 btfname rmb 2 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
50 btflag rmb 1 |
1916 | 51 qfname rmb 2 |
52 qflag rmb 1 | |
53 rflag rmb 1 | |
912 | 54 statptr rmb 2 |
55 bfpath rmb 1 | |
56 devpath rmb 1 | |
57 parmpath rmb 1 | |
1916 | 58 u0005 rmb 1 Needed? |
0 | 59 u0006 rmb 2 |
1916 | 60 ddbt rmb 3 |
61 ddbtsz rmb 2 | |
0 | 62 u000D rmb 2 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
63 u000F rmb 2 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
64 u0011 rmb 2 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
65 u0013 rmb 2 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
66 u0015 rmb 2 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
67 u0017 rmb 7 |
912 | 68 devopts rmb 20 |
1916 | 69 bfdlsn rmb 3 |
70 u0035 rmb 9 | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
71 u003E rmb 2 |
1916 | 72 eflag rmb 1 |
912 | 73 sngldrv rmb 1 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
74 bootdev rmb 32 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
75 lsn0 rmb 26 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
76 u007B rmb 2 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
77 u007D rmb 1 |
912 | 78 sectbuff rmb 1024 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
79 u047E rmb 16 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
80 u048E rmb 1 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
81 u048F rmb 7 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
82 u0496 rmb 7018 |
0 | 83 size equ . |
200
e9ce43cc215e
Made major changes to headers for consistency and identification
boisy
parents:
172
diff
changeset
|
84 |
1217 | 85 name fcs /OS9Gen/ |
200
e9ce43cc215e
Made major changes to headers for consistency and identification
boisy
parents:
172
diff
changeset
|
86 fcb edition |
e9ce43cc215e
Made major changes to headers for consistency and identification
boisy
parents:
172
diff
changeset
|
87 |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
88 IFNE DOHELP |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
89 HelpMsg fcb C$LF |
1883 | 90 fcc "Use (CAUTION): OS9Gen </devname> <opts>" |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
91 fcb C$LF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
92 fcc " ..reads (std input) pathnames until EOF," |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
93 fcb C$LF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
94 fcc " merging paths into New OS9Boot file." |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
95 fcb C$LF |
1916 | 96 fcc " -e = extended boot (fragmented)" |
97 fcb C$LF | |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
98 fcc " -s = single drive operation" |
1215 | 99 fcb C$LF |
1217 | 100 fcc " -t=boottrack = set boot track file" |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
101 fcb C$LF,C$CR |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
102 ENDC |
122 | 103 fcc "Can't find: " |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
104 ErrWrit fcb C$LF |
122 | 105 fcc "Error writing kernel track" |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
106 fcb C$CR |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
107 IFEQ DOHD |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
108 HDGen fcb C$LF |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
109 fcc "Error - cannot gen to hard disk" |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
110 fcb C$CR |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
111 ENDC |
912 | 112 IFGT Level-1 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
113 CantRel fcb C$LF |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
114 fcc "Error - can't link to Rel module" |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
115 fcb C$CR |
912 | 116 ENDC |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
117 CarRet fcb C$CR |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
118 TheBell fcb C$BELL |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
119 TWarn fcb C$LF |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
120 fcc "Warning - file(s) present" |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
121 fcb C$LF |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
122 fcc "on track " |
1303 | 123 IFEQ Bt.Track-34 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
124 fcc "34" |
912 | 125 ELSE |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
126 fcc "??" |
912 | 127 ENDC |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
128 fcc " - this track" |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
129 fcb C$LF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
130 fcc "not rewritten." |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
131 fcb C$CR |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
132 BootFrag fcb C$LF |
1215 | 133 fcc "Error - OS9Boot file fragmented" |
122 | 134 fcb C$CR |
1222
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1217
diff
changeset
|
135 IFNE 0 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
136 BadTkMsg fcc "Error - Boot track file must be 4608 bytes" |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
137 fcb C$CR |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
138 BadTkMsgL equ *-BadTkMsg |
1222
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1217
diff
changeset
|
139 ENDC |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
140 Source fcc "Ready SOURCE, hit C to continue: " |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
141 SourceL equ *-Source |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
142 Destin fcc "Ready DESTINATION, hit C to continue: " |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
143 DestinL equ *-Destin |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
144 Rename fcc "RENAME " |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
145 TempBoot fcc "TempBoot " |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
146 fcb $FF |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
147 OS9Boot fcc "OS9Boot" |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
148 fcb C$CR |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
149 fcb $FF |
912 | 150 IFGT Level-1 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
151 TheRel fcc "Rel" |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
152 fcb $FF |
912 | 153 ENDC |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
154 |
1916 | 155 * Here's how registers are set when this process is forked: |
156 * | |
157 * +-----------------+ <-- Y (highest address) | |
158 * ! Parameter ! | |
159 * ! Area ! | |
160 * +-----------------+ <-- X, SP | |
161 * ! Data Area ! | |
162 * +-----------------+ | |
163 * ! Direct Page ! | |
164 * +-----------------+ <-- U, DP (lowest address) | |
165 * | |
166 * D = parameter area size | |
167 * PC = module entry point abs. address | |
168 * CC = F=0, I=0, others undefined | |
169 | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
170 start clrb |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
171 stb <btflag assume no -t specified |
0 | 172 stb <u0005 |
912 | 173 stb <sngldrv assume multi-drive |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
174 stu <statptr save statics pointer |
1916 | 175 leas >u047E,u point stack pointer to u047e |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
176 pshs u |
1916 | 177 tfr y,d copy pointer to top of our mem in D |
178 subd ,s++ D = Y-u047e | |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
179 subd #u047E |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
180 clrb |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
181 std <u0011 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
182 lda #PDELIM |
1916 | 183 cmpa ,x first char of device name a path delimiter? |
184 lbne BadName branch if not (bad name) | |
185 os9 F$PrsNam else parse name | |
186 lbcs ShowHelp branch if error | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
187 lda #PDELIM |
0 | 188 cmpa ,y |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
189 lbeq BadName |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
190 pshs b,a |
1916 | 191 parseopt lda ,y+ get next character |
192 cmpa #'- dash? | |
193 beq parsein branch if so | |
194 cmpa #C$CR end of line? | |
195 beq getdev branch if so | |
196 bra parseopt else continue to parse options | |
197 parsein ldd ,y+ get two chars after - | |
198 cmpa #C$CR end of line? | |
199 beq getdev branch if so | |
200 cmpa #C$SPAC space? | |
201 beq parseopt yes, look for next char | |
202 anda #$DF else make value in A uppercase | |
203 cmpa #'R is it R? | |
204 beq remboot branch if so | |
205 cmpa #'S is it S? | |
206 beq onedrive branch if so | |
207 cmpa #'E is it E | |
208 beq extend branch if so | |
209 cmpd #81*256+61 does D = 'Q=' | |
210 beq quick | |
211 cmpd #84*256+61 does D = 'T=' | |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
212 lbne SoftExit |
1916 | 213 leay 1,y point past = |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
214 sty <btfname save pointer to boottrack filename |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
215 sta <btflag |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
216 * Skip over non-spaces and non-CRs |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
217 SkipNon lda ,y+ |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
218 cmpa #C$CR |
1916 | 219 beq getdev |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
220 cmpa #C$SPAC |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
221 bne SkipNon |
1916 | 222 bra parseopt |
223 remboot inc <rflag remove bootfile reference from LSN0 flag | |
224 bra parsein | |
225 onedrive inc <sngldrv set single drive flag | |
226 bra parsein | |
227 extend inc <eflag set extended boot flag | |
228 bra parsein | |
229 quick leay 1,y point past = | |
230 sty <qfname save pointer to quick filename | |
231 sta <qflag | |
232 getdev puls b,a | |
233 leay <bootdev,u point to boot device | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
234 L0239 sta ,y+ |
0 | 235 lda ,x+ |
236 decb | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
237 bpl L0239 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
238 sty <u003E |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
239 ldd #PENTIR*256+C$SPAC |
0 | 240 std ,y++ |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
241 lbsr GetDest |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
242 leax <bootdev,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
243 lda #UPDAT. |
0 | 244 os9 I$Open |
912 | 245 sta <devpath |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
246 lbcs ShowHelp |
912 | 247 leax <devopts,u |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
248 clrb |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
249 * ldb #SS.Opt |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
250 os9 I$GetStt |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
251 lbcs Bye |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
252 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
253 IFEQ DOHD |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
254 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
255 * If destination drive is hard disk, don't allow |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
256 leax devopts,u |
912 | 257 lda <(PD.TYP-PD.OPT)+devopts,u get type byte |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
258 bpl L0276 branch if not hard drive |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
259 clrb |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
260 leax >HDGen,pcr else tell user can't do hard drive |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
261 lbra WritExit |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
262 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
263 ENDC |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
264 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
265 L0276 ldx <u003E |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
266 leay >TempBoot,pcr |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
267 lda #PDELIM |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
268 L027E sta ,x+ |
0 | 269 lda ,y+ |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
270 bpl L027E |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
271 * Copy OS9Boot string to buffer |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
272 leay >OS9Boot,pcr |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
273 L0288 lda ,y+ |
0 | 274 sta ,x+ |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
275 bpl L0288 |
0 | 276 tfr x,d |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
277 leax <bootdev,u |
0 | 278 pshs x |
279 subd ,s++ | |
280 std <u000D | |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
281 ldd #WRITE.*256+(READ.+WRITE.) |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
282 * lda #WRITE. |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
283 * ldb #READ.+WRITE. |
0 | 284 os9 I$Create |
912 | 285 sta <bfpath |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
286 lbcs Bye |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
287 ldx #$0000 upper 16 bits are zero |
0 | 288 stx <u0006 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
289 ldu #$3000 |
169 | 290 ldb #SS.Size |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
291 os9 I$SetStt set size of newly created file |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
292 lbcs Bye branch if error |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
293 ldu <statptr retrieve static pointer |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
294 bsr L032F |
1217 | 295 |
296 * Read Bootlist file, line by line | |
297 ReadBLst leax sectbuff,u | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
298 ldy #256 |
1916 | 299 clra standard input |
912 | 300 os9 I$ReadLn read line |
301 bcs L0312 branch if error | |
1916 | 302 lda ,x else get byte in A |
912 | 303 ldb #E$EOF and EOF error in B |
304 cmpa #C$CR CR? | |
305 beq L0312 branch if so | |
1916 | 306 cmpa #'* comment? |
1217 | 307 beq ReadBLst continue reading if so |
912 | 308 lda #READ. else use read perms |
309 os9 I$Open open file at X (line we read) | |
310 bcs L031A branch if error | |
311 sta <parmpath save path | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
312 L02DD ldx <u0015 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
313 ldd <u0011 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
314 subd <u0013 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
315 tfr d,y |
912 | 316 lda <parmpath |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
317 os9 I$Read |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
318 bcc L02F9 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
319 cmpb #E$EOF |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
320 lbne Bye |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
321 os9 I$Close |
912 | 322 clr <parmpath |
1217 | 323 bra ReadBLst |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
324 L02F9 tfr y,d |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
325 leax d,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
326 stx <u0015 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
327 addd <u0013 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
328 std <u0013 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
329 cmpd <u0011 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
330 bcs L030C |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
331 bsr L032B |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
332 bcs L0328 |
912 | 333 L030C tst <parmpath |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
334 bne L02DD |
1217 | 335 bra ReadBLst |
912 | 336 L0312 cmpb #E$EOF end of file? |
337 bne L0328 branch if not | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
338 bsr L033D |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
339 bra L0377 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
340 L031A pshs b |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
341 leax sectbuff,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
342 ldy #256 |
912 | 343 lda #$02 standard error |
344 os9 I$WritLn write | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
345 L0328 lbra Bye |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
346 L032B bsr L033D |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
347 bcs L033C |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
348 L032F lbsr GetSrc |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
349 clra |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
350 clrb |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
351 std <u0013 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
352 leax >u047E,u |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
353 stx <u0015 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
354 L033C rts |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
355 L033D lbsr GetDest |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
356 ldd <u0013 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
357 beq L033C |
912 | 358 tst <sngldrv single drive? |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
359 beq L0361 branch if not |
912 | 360 lda <devpath |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
361 ldx #$0000 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
362 ldu #$0000 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
363 os9 I$Seek seek to LSN0 |
912 | 364 ldu <statptr +BGP+ added |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
365 bcs L033C |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
366 leax sectbuff,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
367 ldy #256 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
368 os9 I$Read read LSN0 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
369 bcs L033C |
1883 | 370 L0361 lda <bfpath get bootfile path in A |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
371 leax >u047E,u |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
372 ldy <u0013 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
373 os9 I$Write |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
374 bcs L033C |
0 | 375 tfr y,d |
376 addd <u0006 | |
377 std <u0006 | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
378 clrb |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
379 rts |
912 | 380 L0377 leax <devopts,u |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
381 clrb |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
382 * ldb #SS.Opt |
912 | 383 lda <bfpath |
0 | 384 os9 I$GetStt |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
385 lbcs Bye |
1883 | 386 lda <bfpath get bootfile path |
0 | 387 ldx #$0000 |
388 ldu <u0006 | |
1883 | 389 ldb #SS.Size set bootfile size |
0 | 390 os9 I$SetStt |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
391 lbcs Bye |
912 | 392 ldu <statptr |
0 | 393 os9 I$Close |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
394 lbcs ShowHelp |
1883 | 395 |
1916 | 396 tst <eflag extended boot option used? |
1883 | 397 bne nonfrag yes, don't check for fragmented file |
398 | |
1916 | 399 ldx <bfdlsn,u load X/U with LSN of bootfile fd sector |
400 lda <bfdlsn+2,u | |
1883 | 401 clrb round off to sector boundary |
0 | 402 tfr d,u |
1883 | 403 lda <devpath get path to raw device |
404 os9 I$Seek seek | |
912 | 405 ldu <statptr |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
406 lbcs Bye |
1883 | 407 leax >u047E,u point to buffer |
408 ldy #256 read one sector | |
409 os9 I$Read do it! | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
410 lbcs Bye |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
411 ldd >u047E+(FD.SEG+FDSL.S+FDSL.B),u |
1883 | 412 lbne ItsFragd if not zero, file is fragmented |
1916 | 413 nonfrag lda <devpath get the device path |
0 | 414 ldx #$0000 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
415 ldu #DD.BT |
1916 | 416 os9 I$Seek seek to DD.BT in LSN0 |
912 | 417 ldu <statptr |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
418 lbcs Bye |
1916 | 419 leax ddbt,u point to our internal ddbt copy in statics |
420 ldy #DD.DAT-DD.BT we want DD.BT and DD.BTSZ into ddbt,u | |
421 os9 I$Read so read bootstrap sector and bootfile size | |
1883 | 422 lbcs Bye branch if error |
1916 | 423 ldd <ddbtsz get DD.BTSZ in D |
1883 | 424 beq L040D branch if zero |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
425 ldx <u003E |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
426 leay >OS9Boot,pcr |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
427 lda #PDELIM |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
428 L03F3 sta ,x+ |
0 | 429 lda ,y+ |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
430 bpl L03F3 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
431 leax <bootdev,u |
1916 | 432 os9 I$Delete delete the os9boot file |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
433 ldx <u003E |
1916 | 434 leay >TempBoot,pcr point to "tempboot" name |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
435 lda #PDELIM |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
436 L0407 sta ,x+ |
0 | 437 lda ,y+ |
1916 | 438 bpl L0407 copy it into buffer |
912 | 439 L040D tst <sngldrv |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
440 beq L042E |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
441 clra |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
442 leax >Rename,pcr |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
443 os9 F$Link |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
444 bcc L0428 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
445 lbsr GetSrc |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
446 os9 F$Load |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
447 lbcs Bye |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
448 lbsr GetDest |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
449 L0428 tfr u,d |
912 | 450 ldu <statptr |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
451 std u000F,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
452 L042E lda #$01 |
0 | 453 clrb |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
454 leax >Rename,pcr |
0 | 455 ldy <u000D |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
456 leau <bootdev,u |
1916 | 457 os9 F$Fork fork rename tempboot os9gen |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
458 lbcs Bye |
0 | 459 os9 F$Wait |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
460 lbcs Bye |
0 | 461 tstb |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
462 lbne Bye |
912 | 463 tst <sngldrv |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
464 beq L045F |
912 | 465 ldu <statptr |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
466 ldd u000F,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
467 tfr d,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
468 os9 F$UnLink |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
469 lbcs Bye |
912 | 470 L045F ldu <statptr |
1916 | 471 tst <eflag extended boot? |
472 beq oldstyle branch if not | |
473 lda <bfdlsn,u get LSN of fdsect | |
474 stb <ddbt save in DD.BT | |
475 ldd <bfdlsn+1,u | |
476 std <ddbt+1 save in DD.BT+1 | |
477 clr <ddbtsz clear out DD.BTSZ | |
478 clr <ddbtsz+1 since DD.BT points to FD | |
1883 | 479 bra around |
480 oldstyle ldb >u048E,u get size of file bits 23-16 | |
1916 | 481 stb <ddbt savein DD.BT |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
482 ldd >u048F,u |
1916 | 483 std <ddbt+1 save in DD.BT+1 |
1883 | 484 ldd <u0006 get size of file bits 15-0 |
1916 | 485 std <ddbtsz save in DD.BTSZ |
1883 | 486 around ldx #$0000 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
487 ldu #DD.BT |
912 | 488 lda <devpath |
1883 | 489 os9 I$Seek seek to DD.BT in LSN0 |
912 | 490 ldu <statptr |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
491 lbcs Bye |
1916 | 492 leax ddbt,u point X to modified DD.BT and DD.BTSZ |
1883 | 493 ldy #DD.DAT-DD.BT write it out |
0 | 494 os9 I$Write |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
495 lbcs Bye |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
496 pshs u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
497 clra |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
498 clrb |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
499 tfr d,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
500 tfr d,u |
912 | 501 lda <devpath |
1883 | 502 os9 I$Seek seek to LSN0 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
503 lbcs Bye |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
504 puls u |
912 | 505 leax <lsn0,u |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
506 ldy #DD.DAT |
912 | 507 lda <devpath |
1883 | 508 os9 I$Read read first part of LSN0 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
509 lbcs Bye |
1233
7bbcfb48124a
Fixed DS boot track bug for sure! Did more minor optimizations.
boisy
parents:
1232
diff
changeset
|
510 ldd #$0001 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
511 lbsr Seek2LSN |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
512 leax sectbuff,u |
912 | 513 ldy <lsn0+DD.MAP,u get number of bytes in device's bitmap |
514 lda <devpath | |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
515 os9 I$Read |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
516 lbcs Bye |
1303 | 517 ldd #Bt.Track*256 boot track |
1883 | 518 ldy #$0004 four bits |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
519 lbsr ABMClear |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
520 bcc L0520 |
1303 | 521 ldd #Bt.Track*256 boot track |
1883 | 522 lbsr Seek2LSN seek to it |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
523 leax <u0017,u |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
524 ldy #$0007 |
912 | 525 lda <devpath |
1883 | 526 os9 I$Read read first seven bytes of boot track |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
527 lbcs Bye |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
528 leax <u0017,u |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
529 ldd ,x |
1883 | 530 cmpd #79*256+83 OS ?? |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
531 lbne WarnUser |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
532 * cmpb #'O |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
533 * lbne WarnUser |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
534 * cmpb #'S |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
535 * lbne WarnUser |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
536 lda $04,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
537 cmpa #$12 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
538 beq L0512 |
1303 | 539 ldd #Bt.Track*256+15 boot track, sector 16 |
1916 | 540 ldy #$0003 sectors 16-18 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
541 lbsr ABMClear |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
542 lbcs WarnUser |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
543 L0512 clra |
912 | 544 ldb <lsn0+DD.TKS,u get number of tracks in D |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
545 tfr d,y |
1303 | 546 ldd #Bt.Track*256 boot track |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
547 lbsr ABMSet |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
548 bra L0531 |
1303 | 549 L0520 ldd #Bt.Track*256+4 boot track |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
550 ldy #$000E sectors 5-18 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
551 lbsr ABMClear |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
552 lbcs WarnUser |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
553 bra L0512 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
554 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
555 L0531 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
556 ldd #$0001 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
557 lbsr Seek2LSN |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
558 leax sectbuff,u |
912 | 559 ldy <lsn0+DD.MAP,u get number of bytes in device's bitmap |
560 lda <devpath | |
1916 | 561 os9 I$Write write out the bitmap |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
562 lbcs Bye |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
563 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
564 * Code added to write alternate boottrack file |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
565 * BGP - 2003/06/26 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
566 tst <btflag |
1916 | 567 beq BTMem get boot track from memory |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
568 lbsr GetSrc |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
569 ldx btfname,u |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
570 lda #READ. |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
571 os9 I$Open |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
572 lbcs Bye |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
573 |
1222
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1217
diff
changeset
|
574 IFNE 0 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
575 * Determine if the size of the file is 4608 bytes |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
576 * Note, this assumes 18 sectors per track and 256 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
577 * bytes per sector. |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
578 ldb #SS.Size |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
579 os9 I$GetStt get size |
1916 | 580 tfr u,y put lower 16 bytes of file size in Y |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
581 ldu <statptr |
1916 | 582 lbcs Bye branch if error |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
583 cmpx #$0000 correct size? |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
584 bne BadBTrak branch if not |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
585 cmpy #$1200 correct size? |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
586 beq ReadBTrk branch if not |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
587 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
588 BadBTrak leax BadTkMsg,pcr |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
589 ldy #BadTkMsgL |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
590 lda #$02 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
591 os9 I$WritLn |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
592 lbra Bye |
1222
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1217
diff
changeset
|
593 ELSE |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1217
diff
changeset
|
594 ldy #$1200 |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1217
diff
changeset
|
595 ENDC |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
596 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
597 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
598 * Read in boot track file |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
599 * Y = proper boottrack size |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
600 ReadBTrk leax u0496,u point to sector buffer |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
601 os9 I$Read read sector buffer |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
602 lbcs Bye |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
603 os9 I$Close close path to boot track |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
604 lbsr GetDest |
1303 | 605 ldd #Bt.Track*256 boot track |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
606 lbsr Seek2LSN |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
607 bra WrBTrack |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
608 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
609 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
610 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
611 BTMem |
912 | 612 IFGT Level-1 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
613 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
614 * OS-9 Level Two: Link to Rel, which brings in boot code |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
615 pshs u |
1916 | 616 lda #Systm+Objct we want to link to a system object |
617 leax >TheRel,pcr point to REL name | |
618 os9 F$Link link to it | |
619 lbcs L0724 branch if error | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
620 tfr u,d |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
621 puls u |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
622 subd #$0006 |
1916 | 623 std u007B,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
624 lda #$E0 |
1916 | 625 anda u007B,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
626 ora #$1E |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
627 ldb #$FF |
1916 | 628 subd u007B,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
629 addd #$0001 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
630 tfr d,y |
1303 | 631 ldd #Bt.Track*256 boot track |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
632 lbsr Seek2LSN |
1916 | 633 ldx u007B,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
634 |
912 | 635 ELSE |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
636 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
637 * OS-9 Level One: Write out boot track data |
1303 | 638 ldd #Bt.Track*256 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
639 lbsr Seek2LSN |
1300 | 640 ldx #Bt.Start |
641 ldy #Bt.Size | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
642 |
912 | 643 ENDC |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
644 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
645 WrBTrack |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
646 lda <devpath |
0 | 647 os9 I$Write |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
648 lbcs WriteErr |
0 | 649 os9 I$Close |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
650 lbcs Bye |
0 | 651 clrb |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
652 lbra Bye |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
653 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
654 * Convert Track/Sector to absolute LSN |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
655 * Entry: A = track, B = sector |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
656 * Returns in D |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
657 AbsLSN pshs b |
912 | 658 ldb <lsn0+DD.FMT,u get format byte |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
659 andb #FMT.SIDE test sides bit |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
660 beq AbsLSN1 branch if 1 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
661 ldb #$02 else 2 sides |
1232
5c4b43698a34
Fixed stupid bug where DS disks weren't having their boot track written
boisy
parents:
1222
diff
changeset
|
662 fcb $8C skip next two bytes |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
663 * bra AbsLSN2 |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
664 AbsLSN1 ldb #$01 1 side |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
665 AbsLSN2 mul multiply sides times track |
912 | 666 lda <lsn0+DD.TKS,u get device tracks |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
667 mul multiply by (sides * track) |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
668 addb ,s+ add in sector |
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
669 * addb ,s add in sector |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
670 adca #$00 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
671 * leas $01,s |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
672 rts |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
673 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
674 * Bitmap conversion from bit to byte |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
675 * Entry: X = pointer to bitmap |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
676 * D = bit |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
677 * Exit: A = bit mask |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
678 * X = pointer to byte represented by bit D |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
679 L05AA pshs y,b |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
680 lsra divide D by 8 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
681 rorb |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
682 lsra |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
683 rorb |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
684 lsra |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
685 rorb |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
686 leax d,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
687 puls b |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
688 leay <BitMask,pcr |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
689 andb #$07 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
690 lda b,y |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
691 puls pc,y |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
692 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
693 BitMask fcb $80,$40,$20,$10,$08,$04,$02,$01 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
694 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
695 * Clear bits in the allocation bitmap |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
696 * Entry: A = Track, B = Sector, Y = number of bits to clear |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
697 ABMClear pshs x,y,b,a |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
698 bsr AbsLSN convert A:B to LSN |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
699 leax sectbuff,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
700 bsr L05AA |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
701 sta ,-s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
702 bmi L05EA |
1916 | 703 L05D3 lda ,x get byte in bitmap |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
704 sta u007D,u |
1916 | 705 L05D9 anda ,s and with byte on stack |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
706 bne L0616 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
707 leay -1,y |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
708 beq L0612 |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
709 lda u007D,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
710 lsr ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
711 bcc L05D9 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
712 leax $01,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
713 L05EA lda #$FF |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
714 sta ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
715 bra L05FA |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
716 L05F0 lda ,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
717 anda ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
718 bne L0616 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
719 leax $01,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
720 leay -$08,y |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
721 L05FA cmpy #$0008 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
722 bhi L05F0 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
723 beq L060C |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
724 lda ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
725 L0604 lsra |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
726 leay -$01,y |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
727 bne L0604 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
728 coma |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
729 sta ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
730 L060C lda ,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
731 anda ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
732 bne L0616 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
733 L0612 andcc #^Carry |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
734 bra L0618 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
735 L0616 orcc #Carry |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
736 L0618 leas $01,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
737 puls pc,y,x,b,a |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
738 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
739 * Set bits in the allocation bitmap |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
740 * Entry: A = Track, B = Sector, Y = number of bits to set |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
741 ABMSet pshs y,x,b,a |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
742 lbsr AbsLSN |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
743 leax sectbuff,u |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
744 bsr L05AA |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
745 sta ,-s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
746 bmi L063A |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
747 lda ,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
748 L062C ora ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
749 leay -$01,y |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
750 beq L0658 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
751 lsr ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
752 bcc L062C |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
753 sta ,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
754 leax $01,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
755 L063A lda #$FF |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
756 bra L0644 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
757 L063E sta ,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
758 leax $01,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
759 leay -$08,y |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
760 L0644 cmpy #$0008 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
761 bhi L063E |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
762 beq L0658 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
763 L064C lsra |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
764 leay -$01,y |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
765 bne L064C |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
766 coma |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
767 sta ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
768 lda ,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
769 ora ,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
770 L0658 sta ,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
771 leas $01,s |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
772 puls pc,y,x,b,a |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
773 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
774 Seek2LSN pshs u,y,x,b,a |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
775 lbsr AbsLSN |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
776 pshs a |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
777 tfr b,a |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
778 clrb |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
779 tfr d,u |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
780 puls b |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
781 clra |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
782 tfr d,x |
912 | 783 lda <devpath |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
784 os9 I$Seek |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
785 lbcs WriteErr |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
786 puls pc,u,y,x,b,a |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
787 |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
788 clra |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
789 clrb |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
790 tfr d,x |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
791 tfr d,u |
912 | 792 lda <devpath |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
793 os9 I$Seek |
912 | 794 leax <lsn0,u |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
795 ldy #DD.DAT |
912 | 796 lda <devpath |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
797 os9 I$Write |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
798 bcs Bye |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
799 rts |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
800 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
801 * Routine to write various error messages then exiting |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
802 WriteErr leax >ErrWrit,pcr |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
803 bra WritExit |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
804 BadName ldb #E$BPNam |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
805 ShowHelp equ * |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
806 IFNE DOHELP |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
807 leax >HelpMsg,pcr |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
808 ELSE |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
809 clrb |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
810 bra Bye |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
912
diff
changeset
|
811 ENDC |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
812 WritExit pshs b |
0 | 813 lda #$02 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
814 ldy #256 |
0 | 815 os9 I$WritLn |
816 puls b | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
817 Bye os9 F$Exit |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
818 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
819 * Source/Destination Disk Switch Routine |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
820 GetSrc pshs u,y,x,b,a |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
821 clra |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
822 bra TstSingl |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
823 GetDest pshs u,y,x,b,a |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
824 lda #$01 |
912 | 825 TstSingl tst <sngldrv |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
826 beq L06FD |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
827 AskUser pshs a |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1166
diff
changeset
|
828 AskUser2 tsta |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
829 bne Ask4Dst |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
830 Ask4Src leax >Source,pcr |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
831 ldy #SourceL |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
832 bra L06D4 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
833 Ask4Dst leax >Destin,pcr |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
834 ldy #DestinL |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
835 L06D4 bsr DoWrite |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
836 leax ,-s |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
837 ldy #$0001 |
1916 | 838 lda #$02 read from stderr |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
839 os9 I$Read read one char |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
840 lda ,s+ |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
841 eora #'C |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
842 anda #$DF |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
843 beq L06F9 branch if it's a C |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
844 leax >TheBell,pcr |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
845 ldy #$0001 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
846 bsr DoWrite else ring the error bell |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
847 bsr WriteCR |
1215 | 848 * BUG FIX: in certain cases, puls a was being done twice. |
849 lda ,s ++ | |
850 * puls a -- | |
851 bra AskUser2 ++ | |
852 * bne AskUser -- | |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
853 L06F9 bsr WriteCR |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
854 puls a |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
855 L06FD puls pc,u,y,x,b,a |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
856 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
857 DoWrite lda #$01 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
858 os9 I$WritLn |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
859 rts |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
860 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
861 WriteCR pshs y,x,a |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
862 lda #$01 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
863 leax >CarRet,pcr |
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
864 ldy #80 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
865 os9 I$WritLn |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
169
diff
changeset
|
866 puls pc,y,x,a |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
867 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
868 ItsFragd leax >BootFrag,pcr |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
869 SoftExit ldb #$01 |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
870 bra WritExit |
1215 | 871 |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
872 WarnUser leax >TWarn,pcr |
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
873 bra SoftExit |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
124
diff
changeset
|
874 |
912 | 875 IFGT Level-1 |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
876 L0724 leax >CantRel,pcr |
283
07d1ec67d1d2
Made extensive comment improvements, fixed minor bug related to wiping out
boisy
parents:
266
diff
changeset
|
877 lbra WritExit |
912 | 878 ENDC |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
879 |
0 | 880 emod |
881 eom equ * | |
266
03af31c2d39d
Migrated OS-9 Level Two version over to OS-9 Level One with modifications
boisy
parents:
262
diff
changeset
|
882 end |