fixed z80 regressions (nw)

This commit is contained in:
smf- 2014-01-21 12:19:35 +00:00
parent 9fcfd02258
commit a8ec93faec
2 changed files with 5 additions and 4 deletions

View File

@ -3716,16 +3716,16 @@ void z80_device::z80_set_cycle_tables(const UINT8 *op, const UINT8 *cb, const UI
z80_device::z80_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : z80_device::z80_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
cpu_device(mconfig, Z80, "Zilog Z-80", tag, owner, clock, "z80", __FILE__), cpu_device(mconfig, Z80, "Z80", tag, owner, clock, "z80", __FILE__),
m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0), m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0),
m_io_config("program", ENDIANNESS_LITTLE, 8, 16, 0) m_io_config("io", ENDIANNESS_LITTLE, 8, 16, 0)
{ {
} }
z80_device::z80_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : z80_device::z80_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
cpu_device(mconfig, type, name, tag, owner, clock, shortname, source), cpu_device(mconfig, type, name, tag, owner, clock, shortname, source),
m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0), m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0),
m_io_config("program", ENDIANNESS_LITTLE, 8, 16, 0) m_io_config("io", ENDIANNESS_LITTLE, 8, 16, 0)
{ {
} }

View File

@ -51,6 +51,7 @@ protected:
virtual UINT32 execute_min_cycles() const { return 2; } virtual UINT32 execute_min_cycles() const { return 2; }
virtual UINT32 execute_max_cycles() const { return 16; } virtual UINT32 execute_max_cycles() const { return 16; }
virtual UINT32 execute_input_lines() const { return 4; } virtual UINT32 execute_input_lines() const { return 4; }
virtual UINT32 execute_default_irq_vector() const { return 0xff; }
virtual void execute_run(); virtual void execute_run();
virtual void execute_set_input(int inputnum, int state); virtual void execute_set_input(int inputnum, int state);
@ -63,7 +64,7 @@ protected:
virtual void state_string_export(const device_state_entry &entry, astring &string); virtual void state_string_export(const device_state_entry &entry, astring &string);
// device_disasm_interface overrides // device_disasm_interface overrides
virtual UINT32 disasm_min_opcode_bytes() const { return 4; } virtual UINT32 disasm_min_opcode_bytes() const { return 1; }
virtual UINT32 disasm_max_opcode_bytes() const { return 4; } virtual UINT32 disasm_max_opcode_bytes() const { return 4; }
virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options); virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options);