sshot: correct cpu type (nw)

This commit is contained in:
hap 2020-05-13 13:50:56 +02:00
parent 5657907a86
commit ae0e5c124f
3 changed files with 5 additions and 4 deletions

View File

@ -312,7 +312,7 @@ void scmp_device::execute_one(int opcode)
m_AC = 0xff;
break;
// Others are illegal
default : m_icount -= 1;
default : m_icount -= 5;
illegal (opcode);
break;
}
@ -444,7 +444,7 @@ void scmp_device::execute_one(int opcode)
m_icount -= 5;
break;
// Others are illegal
default : m_icount -= 1;
default : m_icount -= 5;
illegal (opcode);
break;
}
@ -455,6 +455,7 @@ void scmp_device::execute_one(int opcode)
/***************************************************************************
COMMON EXECUTION
***************************************************************************/
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

View File

@ -34,7 +34,7 @@ protected:
// device_execute_interface overrides
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 void execute_run() override;

View File

@ -348,7 +348,7 @@ GFXDECODE_END
void supershot_state::supershot(machine_config &config)
{
/* 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);
/* video hardware */