mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
e05a30: fix bit order for printhead output
The 9th bit is the LSB, not the MSB.
This commit is contained in:
parent
b9063c1916
commit
15c5d9e721
@ -97,11 +97,11 @@ void e05a30_device::device_reset()
|
|||||||
void e05a30_device::update_printhead(int pos, UINT8 data)
|
void e05a30_device::update_printhead(int pos, UINT8 data)
|
||||||
{
|
{
|
||||||
if (pos == 0) {
|
if (pos == 0) {
|
||||||
m_printhead &= 0x00ff;
|
m_printhead &= 0x01fe;
|
||||||
m_printhead |= (UINT16) !!data << 8;
|
m_printhead |= (data >> 7);
|
||||||
} else {
|
} else {
|
||||||
m_printhead &= 0xff00;
|
m_printhead &= 0x0001;
|
||||||
m_printhead |= data;
|
m_printhead |= (UINT16) (data << 1);
|
||||||
}
|
}
|
||||||
m_write_printhead(m_printhead);
|
m_write_printhead(m_printhead);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user