mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +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 ) {
|
||||
stp = state;
|
||||
if ( stp == 0 ) {
|
||||
int ocyl = cyl;
|
||||
if ( dir ) {
|
||||
if ( cyl ) cyl--;
|
||||
} else {
|
||||
if ( cyl < tracks-1 ) cyl++;
|
||||
}
|
||||
|
||||
if(ocyl != cyl)
|
||||
logerror("%s: track %d\n", tag(), cyl);
|
||||
/* Update disk detection if applicable */
|
||||
if (exists())
|
||||
{
|
||||
|
@ -62,8 +62,8 @@ public:
|
||||
void setup_unload_cb(unload_cb cb);
|
||||
void setup_index_pulse_cb(index_pulse_cb cb);
|
||||
|
||||
UINT32* get_buffer() { return image->get_buffer(cyl, ss ^ 1); }
|
||||
UINT32 get_len() { return image->get_track_size(cyl, ss ^ 1); }
|
||||
UINT32* get_buffer() { return image->get_buffer(cyl, ss); }
|
||||
UINT32 get_len() { return image->get_track_size(cyl, ss); }
|
||||
|
||||
void mon_w(int state);
|
||||
bool ready_r();
|
||||
@ -71,7 +71,7 @@ public:
|
||||
|
||||
bool wpt_r() { return output_format == 0; }
|
||||
int dskchg_r() { return dskchg; }
|
||||
bool trk00_r() { return cyl != 0; }
|
||||
bool trk00_r() { return cyl != 0 || !image; }
|
||||
int idx_r() { return idx; }
|
||||
bool ss_r() { return ss; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user