Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/booters/boot_mmc.asm @ 1614:6c53cd87473a
format.asm: updated
sysdbg.asm: added
author | boisy |
---|---|
date | Tue, 22 Jun 2004 22:29:38 +0000 |
parents | 34e7710d58a6 |
children |
rev | line source |
---|---|
1168
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
1 ******************************************************************** |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
2 * Boot - MMC Boot Module |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
3 * |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
4 * $Id$ |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
5 * |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
6 * This module allows booting from MMC devices using Jim Hathaway's |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
7 * MMC Interface for the Color Computer. |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
8 * |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
9 * This booter was created on May 17th, 2003 by Jim Hathaway and Boisy Pitre |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
10 * at the 12th Annual "Last" Chicago CoCoFEST! in Elgin, Illinois at the |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
11 * Cloud-9 booth. |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
12 * |
1354 | 13 * Edt/Rev YYYY/MM/DD Modified by |
14 * Comment | |
1168
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
15 * ------------------------------------------------------------------ |
1354 | 16 * 1 2003/05/17 Jim M. Hathaway |
17 * Created. | |
18 * | |
19 * 2 2003/08/01 Jim M. Hathaway | |
20 * Fixed bug that was also in MMCDRV when reading a byte from the | |
21 * status register. | |
1168
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
22 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
23 nam Boot |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
24 ttl MMC Boot Module |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
25 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
26 ifp1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
27 use defsfile |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
28 endc |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
29 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
30 tylg set Systm+Objct |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
31 atrv set ReEnt+rev |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
32 rev set 2 |
1238 | 33 edition set 2 |
1168
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
34 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
35 mod eom,name,tylg,atrv,start,size |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
36 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
37 blockloc rmb 2 pointer to memory requested |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
38 blockimg rmb 2 duplicate of the above |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
39 bootloc rmb 3 sector pointer; not byte pointer |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
40 bootsize rmb 2 size in bytes |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
41 size equ . |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
42 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
43 name fcs /Boot/ |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
44 fcb edition |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
45 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
46 start clra |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
47 ldb #size |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
48 clean pshs a |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
49 decb |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
50 bne clean |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
51 tfr s,u get pointer to data area |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
52 pshs u save pointer to data area |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
53 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
54 lda #$d0 forced interrupt; kill floppy activity |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
55 sta $FF48 command register |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
56 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
57 clrb |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
58 pause decb |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
59 bne pause |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
60 lda $FF48 clear controller |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
61 clr $FF40 make sure motors are turned off |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
62 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
63 * Init hardware |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
64 lbsr INITCRD |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
65 bcs error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
66 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
67 * Request memory for LSN0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
68 ldd #1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
69 os9 F$SRqMem request one page of RAM |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
70 bcs error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
71 bsr getpntr |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
72 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
73 * Get LSN0 into memory |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
74 clrb MSB sector |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
75 ldx #0 LSW sector |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
76 bsr mread |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
77 bcs error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
78 ldd bootsize,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
79 bcs error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
80 pshs d |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
81 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
82 * Return memory |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
83 ldd #$100 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
84 ldu blockloc,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
85 os9 F$SRtMem |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
86 puls d |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
87 ifgt Level-1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
88 os9 F$BtMem |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
89 else |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
90 os9 F$SRqMem |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
91 endc |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
92 bcs error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
93 bsr getpntr |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
94 std blockimg,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
95 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
96 * Get os9boot into memory |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
97 ldd bootsize,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
98 leas -2,s same as a PSHS D |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
99 getboot std ,s |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
100 ldb bootloc,u MSB sector location |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
101 ldx bootloc+1,u LSW sector location |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
102 bsr mread |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
103 ldd bootloc+1,u update sector location by one to 24bit word |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
104 addd #1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
105 std bootloc+1,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
106 ldb bootloc,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
107 adcb #0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
108 stb bootloc,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
109 inc blockloc,u update memory pointer for upload |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
110 ldd ,s update size of file left to read |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
111 subd #$100 file read one sector at a time |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
112 bhi getboot |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
113 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
114 leas 4+size,s reset the stack same as PULS U,D |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
115 ldd bootsize,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
116 ldx blockimg,u pointer to start of os9boot in memory |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
117 andcc #^Carry clear carry |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
118 rts back to os9p1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
119 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
120 error leas 2+size,s |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
121 rts |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
122 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
123 getpntr tfr u,d save pointer to requested memory |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
124 ldu 2,s recover pointer to data stack |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
125 std blockloc,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
126 rts |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
127 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
128 mread tstb |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
129 bne hwread |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
130 cmpx #0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
131 bne hwread |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
132 bsr hwread |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
133 bcc readlsn0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
134 rts |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
135 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
136 readlsn0 pshs a,x,y |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
137 ldy blockloc,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
138 lda DD.Bt,y os9boot pointer |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
139 ldx DD.Bt+1,y LSW of 24 bit address |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
140 sta bootloc,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
141 stx bootloc+1,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
142 ldx DD.BSZ,y os9boot size in bytes |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
143 stx bootsize,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
144 clrb |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
145 puls a,x,y,pc |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
146 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
147 * Generic read |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
148 hwread pshs x |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
149 lbsr READ |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
150 puls x,pc |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
151 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
152 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
153 CMDREAD equ $51 Command to read a single block |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
154 MMCCSB equ $80 MMC control register slow clock bit |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
155 MMCCRO equ 1 MMC control register offset from data port |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
156 MMCDPR equ $FF7A MMC Data port register |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
157 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
158 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
159 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
160 ******************************** |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
161 * Command bytes storage area |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
162 ******************************** |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
163 CMD0 fcb $40,0,0,0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
164 CMD1 fcb $41,0,0,0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
165 CMD171 fcb $50,0,0,1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
166 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
167 *************************************************************** |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
168 * Send a command string to the MMC (6 bytes) 4 user 2 hard code |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
169 * Entry: y= Pointer to command string to send |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
170 * x= MMC data register |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
171 * b= Not used |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
172 * a= Used to copy data |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
173 *************************************************************** |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
174 SNDC lda ,y Get cmd byte 1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
175 sta ,x Send command byte |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
176 lbsr DLYSTRT Call our delay routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
177 lda 1,y Get cmd byte 2 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
178 sta ,x Send command byte |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
179 lbsr DLYSTRT Call our delay routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
180 lda 2,y Get cmd byte 3 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
181 sta ,x Send command byte |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
182 lbsr DLYSTRT Call our delay routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
183 lda 3,y Get cmd byte 4 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
184 sta ,x Send command byte |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
185 lbsr DLYSTRT Call our delay routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
186 lda #0 Get cmd byte 5 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
187 sta ,x Send command byte |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
188 lbsr DLYSTRT Call our delay routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
189 lda #$95 Get cmd byte 6 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
190 sta ,x Send command byte |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
191 lbsr DLYSTRT Call our delay routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
192 rts Complete sending command return |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
193 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
194 *********************************************************** |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
195 * CHKR - Check card response |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
196 * Used to check response from a card |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
197 * Entry: a= Expected Response byte code |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
198 * b= used for loop / set on exit to flag error/no error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
199 *********************************************************** |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
200 CHKR pshs b Save reg b |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
201 clrb Use for loop counter |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
202 CHKRL1 bsr DLYSTRT Call our delay routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
203 cmpa ,x Check for response |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
204 beq CHKRG Response is good, exit without error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
205 decb Keep looping? |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
206 bne CHKRL1 Done yet? |
1238 | 207 CHKRB bsr DLYSTRT Need delay |
208 comb Set error state | |
1168
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
209 puls b,pc Return |
1238 | 210 CHKRG bsr DLYSTRT Need delay |
211 clrb Set no error | |
1168
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
212 puls b,pc Return |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
213 * End CHKR routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
214 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
215 ********************************************************************* |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
216 * DLYSTRT: Delay routine for use as a delay for sending commands |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
217 * or clock pulses as the slower spi rate. |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
218 * Delay is hard coded at $14 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
219 * All registers perserved |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
220 ********************************************************************* |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
221 DLYSTRT pshs b Save b register for return |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
222 ldb #$14 Default delay needed |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
223 DLYLP1 decb Start of delay loop |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
224 bne DLYLP1 End of delay loop |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
225 puls b,pc Get value of b register back |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
226 * End delay routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
227 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
228 ************************************************************ |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
229 * INITCRD: Init a single card, no register values needed, |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
230 * all preserved |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
231 * Entry: y = Used, and not preserved |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
232 * x = Address to MMC data port |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
233 ************************************************************ |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
234 INITCRD ldx #MMCDPR Address to MMC |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
235 lda #MMCCSB Select no cards and slow speed |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
236 sta MMCCRO,x Store to control register |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
237 lda #$0A A= 10 clocks |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
238 CLKPL1 tst ,x Pulse the clock 80 times to init all cards |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
239 bsr DLYSTRT Call our delay routine |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
240 deca Loop counter |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
241 bne CLKPL1 Keep looping till we send 80 clocks |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
242 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
243 lda #$81 Select crd 1 @ slow speed |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
244 sta MMCCRO,x Write to MMC control register slow speed |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
245 leay CMD0,pcr Load address into y for cmd0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
246 lbsr SNDC Go send the command (cmd0) |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
247 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
248 lda #$01 Expected response |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
249 lbsr CHKR Go check for response bit |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
250 lbcs INITCE1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
251 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
252 ldb #20 Number of times to send CMD1 before error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
253 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
254 leay CMD1,pcr Load address into y for cmd1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
255 INCMD1L lbsr SNDC Go send the command (cmd1) |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
256 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
257 lda #$00 Expected response |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
258 lbsr CHKR Go check for response bit |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
259 bcc INC1C We got our response, continue |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
260 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
261 decb Loop counter |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
262 bne INCMD1L Keep trying to get a response of 0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
263 lbcc INC1C |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
264 lda #81 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
265 lbra INITCE1 This card is not ready exit |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
266 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
267 INC1C lda #$01 Get card number, always use card 0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
268 sta MMCCRO,x Write to MMC control register full speed |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
269 leay CMD171,pcr Get command to change sector to 256 bytes |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
270 lbsr SNDC Go send the command (cmd17-1) |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
271 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
272 lda #0 Expected response |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
273 lbsr CHKR Go check for response byte |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
274 bcs INITCE1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
275 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
276 clrb No error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
277 puls pc Clean exit |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
278 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
279 INITCE1 comb Error, we could not init card |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
280 tfr a,b |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
281 puls pc |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
282 * End of INITCRD |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
283 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
284 ***************************************************************** |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
285 * READ - Read a single 256 byte sector. |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
286 * y= Location to store data to |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
287 * b,x= LSN number |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
288 * x not preserved |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
289 ***************************************************************** |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
290 READ pshs d,x Save LSN |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
291 ldy blockloc,u |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
292 lda #$1 Get drive #1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
293 sta MMCCRO+MMCDPR Select card 1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
294 lda MMCDPR Burn a byte - bug fix |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
295 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
296 lda #CMDREAD Read cmd byte 1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
297 sta MMCDPR Save read command |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
298 nop Delay |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
299 stb MMCDPR Save cmd byte 2 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
300 tfr x,d Move the rest of the LSN |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
301 sta MMCDPR Save cmd byte 3 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
302 ldx #MMCDPR Get MMC address and delay |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
303 stb ,x Save cmd byte 4 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
304 lda #$0 Cmd byte 5 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
305 sta ,x Save cmd byte 5 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
306 lda #$95 Cmd byte 6 CRC |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
307 sta ,x Save cmd byte 6 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
308 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
309 RDN2 lda #$FE Expected response |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
310 lbsr CHKR Check for response |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
311 bcs RDEEX1 Card should have read sector, read error! |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
312 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
313 clra Number of loops 256 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
314 RDLP1 ldb ,x Get byte from MMC |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
315 stb ,y+ Save byte |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
316 deca Loop counter |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
317 bne RDLP1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
318 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
319 ldd ,x Get CRC Byte 1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
320 lda ,x Get CRC Byte 2 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
321 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
322 RDEX1 clr MMCCRO,x Deselect any cards in use |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
323 clrb Set no errors |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
324 puls d,x,pc Read complete with no errors |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
325 RDEEX1 clr MMCCRO,x Deselect any cards in use |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
326 comb Error reading sector |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
327 puls d,x,pc Return with error |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
328 * End of READ |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
329 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
330 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
331 ifgt Level-1 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
332 * Fillers to get to $1D0 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
333 Pad fill $39,$1D0-3-* |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
334 endc |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
335 |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
336 emod |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
337 eom equ * |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
338 end |
3be7fce1a56b
Added Jim Hathaway's MMC booter, made other source changes
boisy
parents:
diff
changeset
|
339 |