annotate level1/cmds/os9gen.asm @ 1883:4a1da412e363

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