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