summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sm510/sm500op.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2017-06-23 00:33:49 +0200
committer hap <happppp@users.noreply.github.com>2017-06-23 00:34:16 +0200
commitbca24133da2a7b5e8dd326bfebc94d5b4cef2f60 (patch)
treeeaf7525ee955f45a5d2614344e1ce1bf0b36d19e /src/devices/cpu/sm510/sm500op.cpp
parentaa191bfe6b78f6670647dd09e8c44f6c6f705484 (diff)
sm510: made KB1013VK12 device a clone of SM5A (nw)
Diffstat (limited to 'src/devices/cpu/sm510/sm500op.cpp')
-rw-r--r--src/devices/cpu/sm510/sm500op.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/devices/cpu/sm510/sm500op.cpp b/src/devices/cpu/sm510/sm500op.cpp
index 2fd8089e39d..44ed43952ff 100644
--- a/src/devices/cpu/sm510/sm500op.cpp
+++ b/src/devices/cpu/sm510/sm500op.cpp
@@ -1,7 +1,7 @@
// license:BSD-3-Clause
-// copyright-holders:hap
+// copyright-holders:hap, Igor
-// SM500 opcode handlers
+// SM500 shared opcode handlers
#include "emu.h"
#include "sm500.h"
@@ -26,6 +26,18 @@ void sm500_device::op_incb()
m_skip = (m_bl == 8);
}
+void sm500_device::op_sbm()
+{
+ // SBM: set RAM address high bit
+ m_bm |= 4;
+}
+
+void sm500_device::op_rbm()
+{
+ // RBM: reset RAM address high bit
+ m_bm &= ~4;
+}
+
// ROM address instructions