summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hd61830.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/hd61830.cpp')
-rw-r--r--src/devices/video/hd61830.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/video/hd61830.cpp b/src/devices/video/hd61830.cpp
index a608c096b1e..15e9930721f 100644
--- a/src/devices/video/hd61830.cpp
+++ b/src/devices/video/hd61830.cpp
@@ -248,6 +248,7 @@ WRITE8_MEMBER( hd61830_device::data_w )
case INSTRUCTION_NUMBER_OF_CHARACTERS:
m_hn = (data & 0x7f) + 1;
+ m_hn = (m_hn % 2 == 0) ? m_hn : (m_hn + 1);
LOG("HD61830 Number of Characters: %u\n", m_hn);
break;
@@ -259,7 +260,7 @@ WRITE8_MEMBER( hd61830_device::data_w )
break;
case INSTRUCTION_CURSOR_POSITION:
- m_cp = (data & 0x7f) + 1;
+ m_cp = (data & 0x0f) + 1;
LOG("HD61830 Cursor Position: %u\n", m_cp);
break;