Fixed interrupt vector in F8 CPU core [Sandro Ronco]

This commit is contained in:
Miodrag Milanovic 2011-01-30 11:35:53 +00:00
parent 120f6c6571
commit 3ddbeb2975

View File

@ -288,7 +288,7 @@ static void ROMC_0F(f8_Regs *cpustate)
* must move the contents of the data bus into the low order * must move the contents of the data bus into the low order
* byte of PC0. * byte of PC0.
*/ */
cpustate->irq_vector = (*cpustate->irq_callback)(cpustate->device, 0); cpustate->irq_vector = (*cpustate->irq_callback)(cpustate->device, F8_INPUT_LINE_INT_REQ);
cpustate->dbus = cpustate->irq_vector & 0x00ff; cpustate->dbus = cpustate->irq_vector & 0x00ff;
cpustate->pc1 = cpustate->pc0; cpustate->pc1 = cpustate->pc0;
cpustate->pc0 = (cpustate->pc0 & 0xff00) | cpustate->dbus; cpustate->pc0 = (cpustate->pc0 & 0xff00) | cpustate->dbus;