Mercurial > hg > Members > kono > nitros9-code
comparison level1/mc09/modules/makefile @ 3122:35fb39e4b218
mc09: Store SD card drive offset in its own 2 bytes
instead of trying to re-use two pre-assigned bytes.
Tidy up comments in driver and in descriptors.
Switch to use of hex offsets in makefile rather than decimal;
more readable and more consistent.
author | Neal Crook <foofoobedoo@gmail.com> |
---|---|
date | Tue, 05 Jan 2016 21:55:34 +0000 |
parents | 174eb9eda7b1 |
children | f5e8a5030fbd |
comparison
equal
deleted
inserted
replaced
3121:96f1d18ce8cf | 3122:35fb39e4b218 |
---|---|
186 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -DDNum=1 | 186 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -DDNum=1 |
187 | 187 |
188 d2_80d.dd: rb1773desc.asm | 188 d2_80d.dd: rb1773desc.asm |
189 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -DDNum=2 | 189 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -DDNum=2 |
190 | 190 |
191 # OFFSET is the high 16 bits of the 24-bit block address | 191 # SDOFFSET is the high 16 bits of the 24-bit block address at |
192 # where the disk image starts on the SDcard. It must match | 192 # which the disk image starts on the SDcard. It must match |
193 # the value used in the create_sd_image script. Needs to be | 193 # the value used in the create_sd_image script. |
194 # expressed in DECIMAL here (at least, I don't know how to pass | |
195 # it in and have it treated as hex) | |
196 dds0_80d.dd: mc09sdcdesc.asm | 194 dds0_80d.dd: mc09sdcdesc.asm |
197 $(AS) $< $(ASOUT)$@ $(AFLAGS) -DDNum=0 -DDD=1 -DOFFSET=640 | 195 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -DDNum=0 -DSDOFFSET=0x0280 -DDD=1 |
198 | 196 |
199 s0_80d.dd: mc09sdcdesc.asm | 197 s0_80d.dd: mc09sdcdesc.asm |
200 $(AS) $< $(ASOUT)$@ $(AFLAGS) -DDNum=0 -DOFFSET=640 | 198 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -DDNum=0 -DSDOFFSET=0x0280 |
201 | 199 |
202 s1_80d.dd: mc09sdcdesc.asm | 200 s1_80d.dd: mc09sdcdesc.asm |
203 $(AS) $< $(ASOUT)$@ $(AFLAGS) -DDNum=1 -DOFFSET=656 | 201 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -DDNum=1 -DSDOFFSET=0x0290 |
204 | 202 |
205 s2_80d.dd: mc09sdcdesc.asm | 203 s2_80d.dd: mc09sdcdesc.asm |
206 $(AS) $< $(ASOUT)$@ $(AFLAGS) -DDNum=2 -DOFFSET=672 | 204 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -DDNum=2 -DSDOFFSET=0x02A0 |
207 | 205 |
208 s3_80d.dd: mc09sdcdesc.asm | 206 s3_80d.dd: mc09sdcdesc.asm |
209 $(AS) $< $(ASOUT)$@ $(AFLAGS) -DDNum=3 -DOFFSET=688 | 207 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -DDNum=3 -DSDOFFSET=0x02B0 |
210 | 208 |
211 # Serial ports for mc09 | 209 # Serial ports for mc09 |
212 term_mc6850_t0.dt: term_mc6850.asm | 210 term_mc6850_t0.dt: term_mc6850.asm |
213 $(AS) $< $(ASOUT)$@ $(AFLAGS) -DTNum=0 -DHwBASE=0xFFD2 | 211 $(AS) $< $(ASOUT)$@ $(AFLAGS) -DTNum=0 -DHwBASE=0xFFD2 |
214 | 212 |