summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/911_vdt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/911_vdt.cpp')
-rw-r--r--src/mame/video/911_vdt.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/911_vdt.cpp b/src/mame/video/911_vdt.cpp
index af57d9daf9a..694fdff5a2a 100644
--- a/src/mame/video/911_vdt.cpp
+++ b/src/mame/video/911_vdt.cpp
@@ -280,11 +280,11 @@ READ8_MEMBER( vdt911_device::cru_r )
{
int reply=0;
- offset &= 0x1;
+ offset &= 0xf;
if (!m_word_select)
{ /* select word 0 */
- switch (offset)
+ switch (offset >> 3)
{
case 0:
reply = m_display_RAM[m_cursor_address];
@@ -299,7 +299,7 @@ READ8_MEMBER( vdt911_device::cru_r )
}
else
{ /* select word 1 */
- switch (offset)
+ switch (offset >> 3)
{
case 0:
reply = m_cursor_address & 0xff;
@@ -321,7 +321,7 @@ READ8_MEMBER( vdt911_device::cru_r )
}
}
- return reply;
+ return BIT(reply, offset & 3);
}
/*