Mercurial > hg > Members > kono > nitros9-code
annotate level1/cmds/cobbler.asm @ 172:1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
are just command name
author | boisy |
---|---|
date | Thu, 11 Jul 2002 21:34:55 +0000 |
parents | 3a847d2b4492 |
children | e9ce43cc215e |
rev | line source |
---|---|
0 | 1 ******************************************************************** |
2 * Cobbler - Make a bootstrap file | |
3 * | |
4 * $Id$ | |
5 * | |
6 * Ed. Comments Who YY/MM/DD | |
7 * ------------------------------------------------------------------ | |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
8 * 5 Original Tandy distribution version |
0 | 9 |
10 nam Cobbler | |
11 ttl Make a bootstrap file | |
12 | |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
13 * Disassembled 02/07/06 23:26:00 by Disasm v1.6 (C) 1988 by RML |
0 | 14 |
15 ifp1 | |
126 | 16 use defsfile |
0 | 17 endc |
18 tylg set Prgrm+Objct | |
19 atrv set ReEnt+rev | |
20 rev set $01 | |
21 mod eom,name,tylg,atrv,start,size | |
22 u0000 rmb 1 | |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
23 DevFd rmb 3 |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
24 BTLSN rmb 1 |
0 | 25 u0005 rmb 2 |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
26 BtSiz rmb 2 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
27 u0009 rmb 7 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
28 sttbuf rmb 3 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
29 u0013 rmb 17 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
30 u0024 rmb 2 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
31 u0026 rmb 10 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
32 u0030 rmb 2 |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
33 devnam rmb 32 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
34 u0052 rmb 16 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
35 u0062 rmb 1 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
36 u0063 rmb 7 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
37 u006A rmb 432 |
0 | 38 size equ . |
39 name equ * | |
40 fcs /Cobbler/ | |
41 fcb $05 | |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
42 L0015 fcb C$LF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
43 fcc "Use: COBBLER </devname>" |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
44 fcb C$LF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
45 fcc " to create a new system disk" |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
46 fcb C$CR |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
47 L004F fcb C$LF |
126 | 48 fcc "Error writing kernel track" |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
49 fcb C$CR |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
50 L006B fcb C$LF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
51 fcc "Error - cannot gen to hard disk" |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
52 fcb C$CR |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
53 L008C fcb C$LF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
54 fcc "Warning - file(s) present" |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
55 fcb C$LF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
56 fcc "on track 34 - this track" |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
57 fcb C$LF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
58 fcc "not rewritten." |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
59 fcb C$CR |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
60 L00CF fcb C$LF |
126 | 61 fcc "Error - OS9boot file fragmented" |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
62 fcb C$CR |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
63 BfNam fcc "OS9Boot " |
0 | 64 fcb $FF |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
65 |
0 | 66 start equ * |
67 clrb | |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
68 lda #'/ |
0 | 69 cmpa ,x |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
70 lbne Usage |
0 | 71 os9 F$PrsNam |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
72 lbcs Usage |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
73 lda #'/ |
0 | 74 cmpa ,y |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
75 lbeq Usage |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
76 leay <devnam,u |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
77 L0114 sta ,y+ |
0 | 78 lda ,x+ |
79 decb | |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
80 bpl L0114 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
81 sty <u0030 |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
82 lda #'@ |
0 | 83 ldb #$20 |
84 std ,y++ | |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
85 leax <devnam,u |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
86 lda #UPDAT. |
0 | 87 os9 I$Open |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
88 sta <DevFd |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
89 lbcs Usage |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
90 ldx <u0030 |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
91 leay >BfNam,pcr |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
92 lda #'/ |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
93 L013A sta ,x+ |
0 | 94 lda ,y+ |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
95 bpl L013A |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
96 lda <DevFd |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
97 leax <sttbuf,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
98 ldb #$00 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
99 os9 I$GetStt |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
100 lbcs Exit |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
101 leax <sttbuf,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
102 lda <u0013,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
103 bpl L015E |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
104 leax >L006B,pcr |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
105 clrb |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
106 lbra wrerr |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
107 L015E lda <DevFd |
0 | 108 pshs u |
109 ldx #$0000 | |
126 | 110 ldu #$0015 probably DD.BT |
0 | 111 os9 I$Seek |
112 puls u | |
126 | 113 lbcs Exit |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
114 leax BTLSN,u |
0 | 115 ldy #$0005 |
126 | 116 os9 I$Read Read bootstrap sector + size = 5 bytes |
117 lbcs Exit | |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
118 ldd <BtSiz |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
119 beq L0193 |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
120 leax <devnam,u |
0 | 121 os9 I$Delete |
122 clra | |
123 clrb | |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
124 sta <BTLSN |
0 | 125 std <u0005 |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
126 std <BtSiz |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
127 lbsr UpLSN0 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
128 L0193 lda #WRITE. |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
129 ldb #UPDAT. |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
130 leax <devnam,u |
0 | 131 os9 I$Create |
132 sta <u0000 | |
126 | 133 lbcs Exit |
0 | 134 ldd >$0068 |
135 subd >$0066 | |
136 tfr d,y | |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
137 std <BtSiz |
0 | 138 ldx >$0066 |
139 lda <u0000 | |
140 os9 I$Write | |
126 | 141 lbcs Exit |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
142 leax <sttbuf,u |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
143 ldb #SS.OPT |
0 | 144 os9 I$GetStt |
126 | 145 lbcs Exit |
0 | 146 lda <u0000 |
147 os9 I$Close | |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
148 lbcs Usage |
0 | 149 pshs u |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
150 ldx <u0024,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
151 lda <u0026,u |
0 | 152 clrb |
153 tfr d,u | |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
154 lda <DevFd |
0 | 155 os9 I$Seek |
156 puls u | |
126 | 157 lbcs Exit |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
158 leax <u0052,u |
0 | 159 ldy #$0100 |
160 os9 I$Read | |
126 | 161 lbcs Exit |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
162 ldd <u006A,u |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
163 lbne Fragd |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
164 ldb <u0062,u |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
165 stb <BTLSN |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
166 ldd <u0063,u |
0 | 167 std <u0005 |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
168 lbsr UpLSN0 |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
169 lbsr SkLSN1 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
170 leax <u0052,u |
0 | 171 ldy #$0100 |
172 os9 I$Read | |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
173 lbcs wrerr |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
174 leax <u0052,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
175 lda <$4C,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
176 bita #$0F |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
177 beq L0273 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
178 lda <DevFd |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
179 pshs u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
180 ldx #$0002 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
181 ldu #$6400 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
182 os9 I$Seek Jump to LSN 612 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
183 puls u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
184 leax u0009,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
185 ldy #$0007 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
186 os9 I$Read |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
187 lbcs L02ED |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
188 leax u0009,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
189 ldd ,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
190 cmpa #$4F |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
191 lbne L02ED |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
192 cmpb #$53 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
193 lbne L02ED |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
194 lda $04,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
195 cmpa #$12 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
196 beq L025C |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
197 lda <$4E,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
198 bita #$1C |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
199 lbne L02ED |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
200 L025C lda <$4C,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
201 ora #$0F |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
202 sta <$4C,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
203 lda #$FF |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
204 sta <$4D,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
205 lda <$4E,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
206 ora #$FC |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
207 sta <$4E,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
208 bra L028C |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
209 L0273 ora #$0F |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
210 sta <$4C,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
211 tst <$4D,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
212 bne L02ED |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
213 com <$4D,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
214 lda <$4E,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
215 bita #$FC |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
216 bne L02ED |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
217 ora #$FC |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
218 sta <$4E,x |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
219 L028C bsr SkLSN1 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
220 leax <u0052,u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
221 ldy #$0064 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
222 os9 I$Write |
126 | 223 bcs wrerr |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
224 pshs u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
225 ldx #$0002 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
226 ldu #$6400 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
227 os9 I$Seek Jump to LSN 612 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
228 puls u |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
229 ldx #$EF00 Address of kernel in RAM |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
230 ldy #$0F80 Amount to write |
0 | 231 os9 I$Write |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
232 bcs ETrack |
0 | 233 os9 I$Close |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
234 bcs Usage |
0 | 235 clrb |
126 | 236 bra Exit |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
237 |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
238 SkLSN1 pshs u |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
239 lda <DevFd |
0 | 240 ldx #$0000 |
241 ldu #$0100 | |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
242 os9 I$Seek Seek to allocation map at LSN 1 |
0 | 243 puls pc,u |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
244 |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
245 Usage leax >L0015,pcr |
126 | 246 wrerr pshs b |
0 | 247 lda #$02 |
248 ldy #$0100 | |
249 os9 I$WritLn | |
250 comb | |
251 puls b | |
126 | 252 Exit os9 F$Exit |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
253 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
254 Fragd leax >L00CF,pcr |
0 | 255 clrb |
126 | 256 bra wrerr |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
257 |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
258 ETrack leax >L004F,pcr |
0 | 259 clrb |
126 | 260 bra wrerr |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
261 |
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
262 L02ED leax >L008C,pcr |
0 | 263 clrb |
126 | 264 bra wrerr |
172
1cd7548b534f
Moved dragon64 specific commands to have _d64 as part of name, CoCo commands
boisy
parents:
168
diff
changeset
|
265 |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
266 UpLSN0 pshs u |
0 | 267 ldx #$0000 |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
268 ldu #$0015 probably DD.BT |
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
269 lda <DevFd |
0 | 270 os9 I$Seek |
271 puls u | |
126 | 272 bcs Exit |
168
3a847d2b4492
Cobbler, OS9Gen and format are all hardware dependent.
roug
parents:
126
diff
changeset
|
273 leax BTLSN,u |
0 | 274 ldy #$0005 |
275 os9 I$Write | |
126 | 276 bcs Exit |
0 | 277 rts |
278 emod | |
279 eom equ * |