diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-05-28 21:02:47 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-05-28 21:02:47 -0700 |
commit | 7758ccc8febb8b7c8b7c145e1fc582fb3ba159f6 (patch) | |
tree | dd35d762da1ee6e63550aca47e2acf69570bad4e /z80_to_x86.h | |
parent | f9883e421104b9071ee0aa2dc2fa97618a2d032e (diff) |
Implemented Z80 NMI
Diffstat (limited to 'z80_to_x86.h')
-rw-r--r-- | z80_to_x86.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/z80_to_x86.h b/z80_to_x86.h index e26777c..3663402 100644 --- a/z80_to_x86.h +++ b/z80_to_x86.h @@ -76,6 +76,7 @@ struct z80_context { uint16_t pc; uint32_t int_pulse_start; uint32_t int_pulse_end; + uint32_t nmi_start; uint8_t breakpoint_flags[(16 * 1024)/sizeof(uint8_t)]; uint8_t * bp_handler; uint8_t * bp_stub; @@ -84,6 +85,7 @@ struct z80_context { uint8_t reset; uint8_t busreq; uint8_t busack; + uint8_t int_is_nmi; uint8_t ram_code_flags[]; }; @@ -103,6 +105,7 @@ void z80_assert_reset(z80_context * context, uint32_t cycle); void z80_clear_reset(z80_context * context, uint32_t cycle); void z80_assert_busreq(z80_context * context, uint32_t cycle); void z80_clear_busreq(z80_context * context, uint32_t cycle); +void z80_assert_nmi(z80_context *context, uint32_t cycle); uint8_t z80_get_busack(z80_context * context, uint32_t cycle); void z80_adjust_cycles(z80_context * context, uint32_t deduction); |