mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
z8000: No unaligned word accesses (nw)
This commit is contained in:
parent
c743a25bc5
commit
4d51fe9403
@ -297,9 +297,10 @@ uint16_t z8002_device::RDPORT_W(int mode, uint16_t addr)
|
||||
|
||||
uint16_t z8001_device::RDPORT_W(int mode, uint16_t addr)
|
||||
{
|
||||
addr &= ~1;
|
||||
if(mode == 0)
|
||||
{
|
||||
return m_io->read_word_unaligned((uint16_t)addr);
|
||||
return m_io->read_word(addr);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -336,9 +337,10 @@ void z8002_device::WRPORT_W(int mode, uint16_t addr, uint16_t value)
|
||||
|
||||
void z8001_device::WRPORT_W(int mode, uint16_t addr, uint16_t value)
|
||||
{
|
||||
addr &= ~1;
|
||||
if(mode == 0)
|
||||
{
|
||||
m_io->write_word_unaligned((uint16_t)addr, value);
|
||||
m_io->write_word(addr, value);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user