Implemented what to do on an interrupt. This seems to be logical as it tries to execute a GSWD instruction, but it takes the interrupt too early because I haven't figured out when to turn INTRM on / off.
This commit is contained in:
parent
7d9cee2905
commit
fd6201c703
|
@ -114,6 +114,13 @@ namespace BizHawk.Emulation.CPUs.CP1610
|
||||||
log.WriteLine(Disassemble(RegisterPC, out addrToAdvance));
|
log.WriteLine(Disassemble(RegisterPC, out addrToAdvance));
|
||||||
log.Flush();
|
log.Flush();
|
||||||
}
|
}
|
||||||
|
if (FlagI && Interruptible && !IntRM)
|
||||||
|
{
|
||||||
|
IntRM = true;
|
||||||
|
Interruptible = false;
|
||||||
|
Indirect_Set(6, 7);
|
||||||
|
RegisterPC = INTERRUPT;
|
||||||
|
}
|
||||||
byte dest, src, mem;
|
byte dest, src, mem;
|
||||||
ushort dest_value, src_value, mem_read, addr, addr_read, offset;
|
ushort dest_value, src_value, mem_read, addr, addr_read, offset;
|
||||||
int decle2, decle3, result = 0, ones, carry, status_word, lower, sign, cond, ext;
|
int decle2, decle3, result = 0, ones, carry, status_word, lower, sign, cond, ext;
|
||||||
|
|
Loading…
Reference in New Issue