st_dsk: fix stupid bug (nw)
This commit is contained in:
parent
5c724c65b4
commit
a7a6ee9ed4
@ -605,9 +605,12 @@ const floppy_image_format_t::desc_e *const st_gen_format::desc_fcp_11[] = {
|
|||||||
|
|
||||||
void st_gen_format::generate(int track, int head, int track_count, int head_count, UINT8 *buffer, int sector_count, floppy_image *image)
|
void st_gen_format::generate(int track, int head, int track_count, int head_count, UINT8 *buffer, int sector_count, floppy_image *image)
|
||||||
{
|
{
|
||||||
desc_s sectors[11];
|
// Note: sector numbers start at 1 for atari/pc
|
||||||
for(int i=0; i<sector_count; i++) {
|
desc_s sectors[12];
|
||||||
sectors[i].data = buffer + 512*i;
|
sectors[0].data = 0;
|
||||||
|
sectors[0].size = 0;
|
||||||
|
for(int i=1; i<=sector_count; i++) {
|
||||||
|
sectors[i].data = buffer + 512*(i-1);
|
||||||
sectors[i].size = 512;
|
sectors[i].size = 512;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user