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:
brandman211 2012-08-13 03:47:08 +00:00
parent 7d9cee2905
commit fd6201c703
1 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,13 @@ namespace BizHawk.Emulation.CPUs.CP1610
log.WriteLine(Disassemble(RegisterPC, out addrToAdvance));
log.Flush();
}
if (FlagI && Interruptible && !IntRM)
{
IntRM = true;
Interruptible = false;
Indirect_Set(6, 7);
RegisterPC = INTERRUPT;
}
byte dest, src, mem;
ushort dest_value, src_value, mem_read, addr, addr_read, offset;
int decle2, decle3, result = 0, ones, carry, status_word, lower, sign, cond, ext;