mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
(mess) floppy: Random fixes/logging [O. Galibert]
This commit is contained in:
parent
5a2289ab25
commit
47e6b65df5
@ -369,12 +369,14 @@ void floppy_image_device::stp_w(int state)
|
|||||||
if ( stp != state ) {
|
if ( stp != state ) {
|
||||||
stp = state;
|
stp = state;
|
||||||
if ( stp == 0 ) {
|
if ( stp == 0 ) {
|
||||||
|
int ocyl = cyl;
|
||||||
if ( dir ) {
|
if ( dir ) {
|
||||||
if ( cyl ) cyl--;
|
if ( cyl ) cyl--;
|
||||||
} else {
|
} else {
|
||||||
if ( cyl < tracks-1 ) cyl++;
|
if ( cyl < tracks-1 ) cyl++;
|
||||||
}
|
}
|
||||||
|
if(ocyl != cyl)
|
||||||
|
logerror("%s: track %d\n", tag(), cyl);
|
||||||
/* Update disk detection if applicable */
|
/* Update disk detection if applicable */
|
||||||
if (exists())
|
if (exists())
|
||||||
{
|
{
|
||||||
|
@ -62,8 +62,8 @@ public:
|
|||||||
void setup_unload_cb(unload_cb cb);
|
void setup_unload_cb(unload_cb cb);
|
||||||
void setup_index_pulse_cb(index_pulse_cb cb);
|
void setup_index_pulse_cb(index_pulse_cb cb);
|
||||||
|
|
||||||
UINT32* get_buffer() { return image->get_buffer(cyl, ss ^ 1); }
|
UINT32* get_buffer() { return image->get_buffer(cyl, ss); }
|
||||||
UINT32 get_len() { return image->get_track_size(cyl, ss ^ 1); }
|
UINT32 get_len() { return image->get_track_size(cyl, ss); }
|
||||||
|
|
||||||
void mon_w(int state);
|
void mon_w(int state);
|
||||||
bool ready_r();
|
bool ready_r();
|
||||||
@ -71,7 +71,7 @@ public:
|
|||||||
|
|
||||||
bool wpt_r() { return output_format == 0; }
|
bool wpt_r() { return output_format == 0; }
|
||||||
int dskchg_r() { return dskchg; }
|
int dskchg_r() { return dskchg; }
|
||||||
bool trk00_r() { return cyl != 0; }
|
bool trk00_r() { return cyl != 0 || !image; }
|
||||||
int idx_r() { return idx; }
|
int idx_r() { return idx; }
|
||||||
bool ss_r() { return ss; }
|
bool ss_r() { return ss; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user