summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/adsp2100
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-03-28 05:25:15 +1100
committer Vas Crabb <vas@vastheman.com>2018-03-28 05:25:15 +1100
commit010155a3c51aa80dcf736b52ec89ffd890f795ef (patch)
treea732be4076a467e5dc25f088f9296544f364f858 /src/devices/cpu/adsp2100
parent703564beccc92a6b6b33ab9562732a4e7ceaae8d (diff)
Reshuffle some stuff:
* Move around the debugger hooks to get a small but measurable performance increase * Remove emucore from external tools * Improve performance of DSP16 interpreter a little by generating six variants of execution loop
Diffstat (limited to 'src/devices/cpu/adsp2100')
-rw-r--r--src/devices/cpu/adsp2100/adsp2100.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/cpu/adsp2100/adsp2100.cpp b/src/devices/cpu/adsp2100/adsp2100.cpp
index a04d4521727..ed17f8b8405 100644
--- a/src/devices/cpu/adsp2100/adsp2100.cpp
+++ b/src/devices/cpu/adsp2100/adsp2100.cpp
@@ -588,7 +588,7 @@ void adsp21xx_device::device_start()
state_add(ADSP2100_FL2, "FL2", m_fl2).mask(1);
// set our instruction counter
- m_icountptr = &m_icount;
+ set_icountptr(m_icount);
}
@@ -1156,7 +1156,7 @@ void adsp21xx_device::execute_set_input(int inputnum, int state)
void adsp21xx_device::execute_run()
{
// Return if CPU is halted
- if (m_input[INPUT_LINE_HALT].m_curstate) {
+ if (current_input_state(INPUT_LINE_HALT)) {
m_icount = 0;
return;
}
@@ -1170,7 +1170,7 @@ void adsp21xx_device::execute_run()
// debugging
m_ppc = m_pc; // copy PC to previous PC
if (check_debugger)
- debugger_instruction_hook(this, m_pc);
+ debugger_instruction_hook(m_pc);
#if ADSP_TRACK_HOTSPOTS
m_pcbucket[m_pc & 0x3fff]++;