summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/upd765.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/upd765.c')
-rw-r--r--src/emu/machine/upd765.c122
1 files changed, 61 insertions, 61 deletions
diff --git a/src/emu/machine/upd765.c b/src/emu/machine/upd765.c
index 057b081562c..416fd890b5e 100644
--- a/src/emu/machine/upd765.c
+++ b/src/emu/machine/upd765.c
@@ -967,7 +967,7 @@ void upd765_family_device::live_run(attotime limit)
live_write_mfm(byte);
if(cur_live.byte_counter == 19)
logerror("%s: formatting sector %02x %02x %02x %02x\n",
- tag(), command[12], command[13], command[14], command[15]);
+ tag(), command[12], command[13], command[14], command[15]);
} else if(cur_live.byte_counter < 22)
live_write_mfm(cur_live.crc >> 8);
else if(cur_live.byte_counter < 44)
@@ -1003,7 +1003,7 @@ void upd765_family_device::live_run(attotime limit)
live_write_fm(byte);
if(cur_live.byte_counter == 10)
logerror("%s: formatting sector %02x %02x %02x %02x\n",
- tag(), command[12], command[13], command[14], command[15]);
+ tag(), command[12], command[13], command[14], command[15]);
} else if(cur_live.byte_counter < 13)
live_write_fm(cur_live.crc >> 8);
else if(cur_live.byte_counter < 24)
@@ -1153,8 +1153,8 @@ void upd765_family_device::start_command(int cmd)
switch(cmd) {
case C_CONFIGURE:
logerror("%s: command configure %02x %02x %02x\n",
- tag(),
- command[1], command[2], command[3]);
+ tag(),
+ command[1], command[2], command[3]);
// byte 1 is ignored, byte 3 is precompensation-related
fifocfg = command[2];
precomp = command[3];
@@ -1280,8 +1280,8 @@ void upd765_family_device::start_command(int cmd)
case C_SPECIFY:
logerror("%s: command specify %02x %02x\n",
- tag(),
- command[1], command[2]);
+ tag(),
+ command[1], command[2]);
spec = (command[1] << 8) | command[2];
main_phase = PHASE_CMD;
break;
@@ -1405,22 +1405,22 @@ void upd765_family_device::read_data_start(floppy_info &fi)
mfm = command[0] & 0x40;
logerror("%s: command read%s data%s%s%s%s cmd=%02x sel=%x chrn=(%d, %d, %d, %d) eot=%02x gpl=%02x dtl=%02x rate=%d\n",
- tag(),
- command[0] & 0x08 ? " deleted" : "",
- command[0] & 0x80 ? " mt" : "",
- command[0] & 0x40 ? " mfm" : "",
- command[0] & 0x20 ? " sk" : "",
- fifocfg & 0x40 ? " seek" : "",
- command[0],
- command[1],
- command[2],
- command[3],
- command[4],
- 128 << (command[5] & 7),
- command[6],
- command[7],
- command[8],
- cur_rate);
+ tag(),
+ command[0] & 0x08 ? " deleted" : "",
+ command[0] & 0x80 ? " mt" : "",
+ command[0] & 0x40 ? " mfm" : "",
+ command[0] & 0x20 ? " sk" : "",
+ fifocfg & 0x40 ? " seek" : "",
+ command[0],
+ command[1],
+ command[2],
+ command[3],
+ command[4],
+ 128 << (command[5] & 7),
+ command[6],
+ command[7],
+ command[8],
+ cur_rate);
fi.st0 = command[1] & 7;
st1 = ST1_MA;
@@ -1499,11 +1499,11 @@ void upd765_family_device::read_data_continue(floppy_info &fi)
return;
}
logerror("%s: reading sector %02x %02x %02x %02x\n",
- tag(),
- cur_live.idbuf[0],
- cur_live.idbuf[1],
- cur_live.idbuf[2],
- cur_live.idbuf[3]);
+ tag(),
+ cur_live.idbuf[0],
+ cur_live.idbuf[1],
+ cur_live.idbuf[2],
+ cur_live.idbuf[3]);
sector_size = calc_sector_size(cur_live.idbuf[3]);
fifo_expect(sector_size, false);
fi.sub_state = SECTOR_READ;
@@ -1583,20 +1583,20 @@ void upd765_family_device::write_data_start(floppy_info &fi)
fi.sub_state = HEAD_LOAD_DONE;
mfm = command[0] & 0x40;
logerror("%s: command write%s data%s%s cmd=%02x sel=%x chrn=(%d, %d, %d, %d) eot=%02x gpl=%02x dtl=%02x rate=%d\n",
- tag(),
- command[0] & 0x08 ? " deleted" : "",
- command[0] & 0x80 ? " mt" : "",
- command[0] & 0x40 ? " mfm" : "",
- command[0],
- command[1],
- command[2],
- command[3],
- command[4],
- 128 << (command[5] & 7),
- command[6],
- command[7],
- command[8],
- cur_rate);
+ tag(),
+ command[0] & 0x08 ? " deleted" : "",
+ command[0] & 0x80 ? " mt" : "",
+ command[0] & 0x40 ? " mfm" : "",
+ command[0],
+ command[1],
+ command[2],
+ command[3],
+ command[4],
+ 128 << (command[5] & 7),
+ command[6],
+ command[7],
+ command[8],
+ cur_rate);
if(fi.dev)
fi.dev->ss_w(command[1] & 4 ? 1 : 0);
@@ -1698,18 +1698,18 @@ void upd765_family_device::read_track_start(floppy_info &fi)
mfm = command[0] & 0x40;
logerror("%s: command read track%s cmd=%02x sel=%x chrn=(%d, %d, %d, %d) eot=%02x gpl=%02x dtl=%02x rate=%d\n",
- tag(),
- command[0] & 0x40 ? " mfm" : "",
- command[0],
- command[1],
- command[2],
- command[3],
- command[4],
- 128 << (command[5] & 7),
- command[6],
- command[7],
- command[8],
- cur_rate);
+ tag(),
+ command[0] & 0x40 ? " mfm" : "",
+ command[0],
+ command[1],
+ command[2],
+ command[3],
+ command[4],
+ 128 << (command[5] & 7),
+ command[6],
+ command[7],
+ command[8],
+ cur_rate);
if(fi.dev)
fi.dev->ss_w(command[1] & 4 ? 1 : 0);
@@ -1819,9 +1819,9 @@ void upd765_family_device::format_track_start(floppy_info &fi)
mfm = command[0] & 0x40;
logerror("%s: command format track %s h=%02x n=%02x sc=%02x gpl=%02x d=%02x\n",
- tag(),
- command[0] & 0x40 ? "mfm" : "fm",
- command[1], command[2], command[3], command[4], command[5]);
+ tag(),
+ command[0] & 0x40 ? "mfm" : "fm",
+ command[1], command[2], command[3], command[4], command[5]);
if(fi.dev)
fi.dev->ss_w(command[1] & 4 ? 1 : 0);
@@ -1875,9 +1875,9 @@ void upd765_family_device::read_id_start(floppy_info &fi)
mfm = command[0] & 0x40;
logerror("%s: command read id%s, rate=%d\n",
- tag(),
- command[0] & 0x40 ? " mfm" : "",
- cur_rate);
+ tag(),
+ command[0] & 0x40 ? " mfm" : "",
+ cur_rate);
if(fi.dev)
fi.dev->ss_w(command[1] & 4 ? 1 : 0);
@@ -2185,8 +2185,8 @@ bool upd765_family_device::sector_matches() const
{
if(0)
logerror("%s: matching %02x %02x %02x %02x - %02x %02x %02x %02x\n", tag(),
- cur_live.idbuf[0], cur_live.idbuf[1], cur_live.idbuf[2], cur_live.idbuf[3],
- command[2], command[3], command[4], command[5]);
+ cur_live.idbuf[0], cur_live.idbuf[1], cur_live.idbuf[2], cur_live.idbuf[3],
+ command[2], command[3], command[4], command[5]);
return
cur_live.idbuf[0] == command[2] &&
cur_live.idbuf[1] == command[3] &&