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