summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/z80/z80n.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/z80/z80n.cpp')
-rw-r--r--src/devices/cpu/z80/z80n.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/devices/cpu/z80/z80n.cpp b/src/devices/cpu/z80/z80n.cpp
new file mode 100644
index 00000000000..52e804d69d1
--- /dev/null
+++ b/src/devices/cpu/z80/z80n.cpp
@@ -0,0 +1,49 @@
+// license:BSD-3-Clause
+// copyright-holders:Andrei I. Holub
+/***************************************************************************
+ Z80N
+***************************************************************************/
+
+#include "emu.h"
+#include "z80n.h"
+#include "z80ndasm.h"
+
+#include "z80.inc"
+
+#define LOG_INT (1U << 1) // z80.lst
+
+//#define VERBOSE (LOG_INT)
+#include "logmacro.h"
+
+
+DEFINE_DEVICE_TYPE(Z80N, z80n_device, "z80n", "Z80N")
+
+std::unique_ptr<util::disasm_interface> z80n_device::create_disassembler()
+{
+ return std::make_unique<z80n_disassembler>();
+}
+
+z80n_device::z80n_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
+ : z80_device(mconfig, Z80N, tag, owner, clock)
+ , m_out_retn_seen_cb(*this)
+ , m_in_nextreg_cb(*this, 0)
+ , m_out_nextreg_cb(*this)
+{
+}
+
+void z80n_device::execute_run()
+{
+ #include "cpu/z80/z80n.hxx"
+}
+
+void z80n_device::device_start()
+{
+ z80_device::device_start();
+ save_item(NAME(m_stackless));
+}
+
+void z80n_device::device_reset()
+{
+ z80_device::device_reset();
+ m_stackless = 0;
+}