Skip to content

Commit d75cdee

Browse files
committed
sinclair/specnext.cpp: Refactored INT/IRQ and implemented configurable DMA halt (delay)
1 parent 0f307ed commit d75cdee

File tree

11 files changed

+201
-98
lines changed

11 files changed

+201
-98
lines changed

src/devices/cpu/z80/z80n.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ z80n_device::z80n_device(const machine_config &mconfig, const char *tag, device_
3131
{
3232
}
3333

34+
void z80n_device::nmi(int state)
35+
{
36+
if (state != CLEAR_LINE)
37+
set_service_attention<SA_NMI_PENDING, 1>();
38+
else
39+
set_service_attention<SA_NMI_PENDING, 0>();
40+
}
41+
3442
void z80n_device::execute_run()
3543
{
3644
#include "cpu/z80/z80n.hxx"

src/devices/cpu/z80/z80n.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class z80n_device : public z80_device
2020
bool nmi_stackless_r() { return m_stackless; }
2121
void nmi_stackless_w(bool data) { m_stackless = data; }
2222

23-
void nmi() { set_service_attention<SA_NMI_PENDING, 1>(); }
23+
void nmi(int state);
2424

2525
protected:
2626
virtual void device_start() override ATTR_COLD;

0 commit comments

Comments
 (0)