mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
i8257: Minor logging improvement
This commit is contained in:
parent
65306b5624
commit
2518ba9a42
@ -541,7 +541,7 @@ void i8257_device::write(offs_t offset, uint8_t data)
|
||||
switch (offset & 0x01)
|
||||
{
|
||||
case REGISTER_ADDRESS:
|
||||
LOGSETUP(" * Register Address <- %02x\n", data);
|
||||
LOGSETUP(" * Channel %d Register Address <- %02x\n", channel, data);
|
||||
if (m_msb)
|
||||
{
|
||||
m_channel[channel].m_address = (data << 8) | (m_channel[channel].m_address & 0xff);
|
||||
@ -557,7 +557,7 @@ void i8257_device::write(offs_t offset, uint8_t data)
|
||||
break;
|
||||
|
||||
case REGISTER_WORD_COUNT:
|
||||
LOGSETUP(" * Register Word Count <- %02x\n", data);
|
||||
LOGSETUP(" * Channel %d Register Word Count <- %02x\n", channel, data);
|
||||
if (m_msb)
|
||||
{
|
||||
m_channel[channel].m_count = ((data & 0x3f) << 8) | (m_channel[channel].m_count & 0xff);
|
||||
|
Loading…
Reference in New Issue
Block a user