diff options
author | Nigel Barnes <Pernod70@users.noreply.github.com> | 2019-08-22 03:11:09 +0100 |
---|---|---|
committer | Nigel Barnes <Pernod70@users.noreply.github.com> | 2019-08-22 03:11:09 +0100 |
commit | 59192651298275dfb7daaaf4b2e8f87388085765 (patch) | |
tree | 593f10d19e7a98d556e0e86e6ca4754c8ce8ed8d | |
parent | 83442450e313cfbbae7e9dba0437caefbb0a8f47 (diff) |
hd61830: Number of characters must be even 2-128.
-rw-r--r-- | src/devices/video/hd61830.cpp | 3 |
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; |