mirror of
https://github.com/holub/mame
synced 2025-06-19 02:38:56 +03:00
sshot: correct cpu type (nw)
This commit is contained in:
parent
5657907a86
commit
ae0e5c124f
@ -312,7 +312,7 @@ void scmp_device::execute_one(int opcode)
|
|||||||
m_AC = 0xff;
|
m_AC = 0xff;
|
||||||
break;
|
break;
|
||||||
// Others are illegal
|
// Others are illegal
|
||||||
default : m_icount -= 1;
|
default : m_icount -= 5;
|
||||||
illegal (opcode);
|
illegal (opcode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -444,7 +444,7 @@ void scmp_device::execute_one(int opcode)
|
|||||||
m_icount -= 5;
|
m_icount -= 5;
|
||||||
break;
|
break;
|
||||||
// Others are illegal
|
// Others are illegal
|
||||||
default : m_icount -= 1;
|
default : m_icount -= 5;
|
||||||
illegal (opcode);
|
illegal (opcode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -455,6 +455,7 @@ void scmp_device::execute_one(int opcode)
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
COMMON EXECUTION
|
COMMON EXECUTION
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
void scmp_device::take_interrupt()
|
void scmp_device::take_interrupt()
|
||||||
{
|
{
|
||||||
uint16_t tmp = ADD12(m_PC.w.l,-1); // We fix PC so at return it goes to current location
|
uint16_t tmp = ADD12(m_PC.w.l,-1); // We fix PC so at return it goes to current location
|
||||||
|
@ -34,7 +34,7 @@ protected:
|
|||||||
|
|
||||||
// device_execute_interface overrides
|
// device_execute_interface overrides
|
||||||
virtual uint32_t execute_min_cycles() const noexcept override { return 5; }
|
virtual uint32_t execute_min_cycles() const noexcept override { return 5; }
|
||||||
virtual uint32_t execute_max_cycles() const noexcept override { return 131593; }
|
virtual uint32_t execute_max_cycles() const noexcept override { return 23+8; } // max opcode + interrupt
|
||||||
virtual uint32_t execute_input_lines() const noexcept override { return 0; }
|
virtual uint32_t execute_input_lines() const noexcept override { return 0; }
|
||||||
virtual void execute_run() override;
|
virtual void execute_run() override;
|
||||||
|
|
||||||
|
@ -348,7 +348,7 @@ GFXDECODE_END
|
|||||||
void supershot_state::supershot(machine_config &config)
|
void supershot_state::supershot(machine_config &config)
|
||||||
{
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
SCMP(config, m_maincpu, XTAL(11'289'000)/4);
|
INS8060(config, m_maincpu, XTAL(11'289'000)/4);
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &supershot_state::supershot_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &supershot_state::supershot_map);
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
|
Loading…
Reference in New Issue
Block a user