mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
floppy: Fix index pulse generation when motor is always on [O. Galibert]
This commit is contained in:
parent
3268fd50cb
commit
cb5b9802b0
@ -252,7 +252,7 @@ bool floppy_image_device::call_load()
|
|||||||
image = global_alloc(floppy_image(tracks, sides, form_factor));
|
image = global_alloc(floppy_image(tracks, sides, form_factor));
|
||||||
best_format->load(&io, form_factor, image);
|
best_format->load(&io, form_factor, image);
|
||||||
|
|
||||||
revolution_start_time = attotime::never;
|
revolution_start_time = motor_always_on ? machine().time() : attotime::never;
|
||||||
revolution_count = 0;
|
revolution_count = 0;
|
||||||
|
|
||||||
index_resync();
|
index_resync();
|
||||||
|
@ -1978,7 +1978,6 @@ void upd765_family_device::index_callback(floppy_image_device *floppy, int state
|
|||||||
floppy_info &fi = flopi[fid];
|
floppy_info &fi = flopi[fid];
|
||||||
if(fi.dev != floppy)
|
if(fi.dev != floppy)
|
||||||
continue;
|
continue;
|
||||||
fprintf(stderr, "floppy %d index %d sub_state %d\n", fid, state, fi.sub_state);
|
|
||||||
|
|
||||||
if(fi.live)
|
if(fi.live)
|
||||||
live_sync();
|
live_sync();
|
||||||
|
Loading…
Reference in New Issue
Block a user