mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
Cleanup. (nw)
This commit is contained in:
parent
54797825ba
commit
1f68cb9336
@ -97,7 +97,7 @@ inline void c64h156_device::receive_bit()
|
||||
|
||||
if (m_zero_count >= m_cycles_until_random_flux) {
|
||||
m_bit_sync = 1;
|
||||
|
||||
|
||||
m_zero_count = 0;
|
||||
m_cycles_until_random_flux = (rand() % 367) + 33;
|
||||
}
|
||||
@ -387,9 +387,10 @@ void c64h156_device::execute_run()
|
||||
if (m_mtr)
|
||||
{
|
||||
receive_bit();
|
||||
decode_bit();
|
||||
}
|
||||
|
||||
decode_bit();
|
||||
|
||||
m_icount--;
|
||||
} while (m_icount > 0);
|
||||
}
|
||||
|
@ -71,6 +71,7 @@ bool g64_format::load(io_generic *io, UINT32 form_factor, floppy_image *image)
|
||||
{
|
||||
offs_t track_offset = pick_integer_le(img, TRACK_OFFSET + (track * 4), 4);
|
||||
if (track_offset > size) throw emu_fatalerror("g64_format: Track %u offset %06x out of bounds", track, track_offset);
|
||||
if (!track_offset) continue;
|
||||
|
||||
offs_t speed_zone = pick_integer_le(img, SPEED_ZONE + (track * 4), 4);
|
||||
if (speed_zone > 3) throw emu_fatalerror("g64_format: Unsupported variable speed zones on track %d", track);
|
||||
|
Loading…
Reference in New Issue
Block a user