summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/i82730.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2016-01-30 13:25:32 -0500
committer AJR <ajrhacker@users.noreply.github.com>2016-01-30 13:25:32 -0500
commit83e6738a0a26282606b21848a027963d63ef8f78 (patch)
tree313ce111894087682675cc4b6559d94baa1af9e6 /src/devices/video/i82730.cpp
parent37adee5d3eaf57ef1a7554781349eb6724326776 (diff)
Add macros for alignment checking (nw)
Diffstat (limited to 'src/devices/video/i82730.cpp')
-rw-r--r--src/devices/video/i82730.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/video/i82730.cpp b/src/devices/video/i82730.cpp
index d344c7006ef..8cd78863df3 100644
--- a/src/devices/video/i82730.cpp
+++ b/src/devices/video/i82730.cpp
@@ -128,7 +128,7 @@ UINT16 i82730_device::read_word(offs_t address)
{
UINT16 data;
- if (sysbus_16bit() && !(address & 1))
+ if (sysbus_16bit() && WORD_ALIGNED(address))
{
data = m_program->read_word(address);
}
@@ -148,7 +148,7 @@ void i82730_device::write_byte(offs_t address, UINT8 data)
void i82730_device::write_word(offs_t address, UINT16 data)
{
- if (sysbus_16bit() && !(address & 1))
+ if (sysbus_16bit() && WORD_ALIGNED(address))
{
m_program->write_word(address, data);
}