summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/z80/z80.h
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-07-26 19:04:35 +0200
committer hap <happppp@users.noreply.github.com>2020-07-26 19:04:35 +0200
commit3b0b993dc20fa1411a7bd210a35ef5b643430d7b (patch)
treeb1953209f89e945eeddb5ad8fe77d2f04b452901 /src/devices/cpu/z80/z80.h
parent5dbfed58e19a5038c13dc90fe2760901a21835e6 (diff)
z80: don't continue cpu when halt opcode gets overwritten
Diffstat (limited to 'src/devices/cpu/z80/z80.h')
-rw-r--r--src/devices/cpu/z80/z80.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/cpu/z80/z80.h b/src/devices/cpu/z80/z80.h
index 4829ab76027..8e82ccd3353 100644
--- a/src/devices/cpu/z80/z80.h
+++ b/src/devices/cpu/z80/z80.h
@@ -229,6 +229,7 @@ protected:
void otdr();
void ei();
+ virtual void check_interrupts();
void take_interrupt();
void take_nmi();
@@ -299,9 +300,9 @@ protected:
// device_execute_interface overrides
virtual uint32_t execute_input_lines() const noexcept override { return 7; }
- virtual void execute_run() override;
virtual void execute_set_input(int inputnum, int state) override;
+ virtual void check_interrupts() override;
void take_interrupt_nsc800();
uint8_t m_nsc800_irq_state[4]; /* state of NSC800 restart interrupts A, B, C */
};