46 lines
669 B
C#
46 lines
669 B
C#
using System;
|
|
|
|
namespace BizHawk.Emulation.Common.Components.I8048
|
|
{
|
|
public partial class I8048
|
|
{
|
|
private void IRQ_(ushort src)
|
|
{
|
|
if (src == 0)
|
|
{
|
|
Regs[ALU] = 0x0003;
|
|
}
|
|
else
|
|
{
|
|
Regs[ALU] = 0x0007;
|
|
}
|
|
|
|
PopulateCURINSTR(DM,
|
|
IDLE,
|
|
IDLE,
|
|
IDLE,
|
|
IDLE,
|
|
IDLE,
|
|
PUSH,
|
|
IDLE,
|
|
SET_ADDR, PC, ALU, 0);
|
|
|
|
IRQS = 9;
|
|
}
|
|
|
|
public bool IRQPending;
|
|
public bool TIRQPending;
|
|
public bool IntEn;
|
|
public bool TimIntEn;
|
|
public bool INT_MSTR;
|
|
|
|
public Action IRQCallback = delegate () { };
|
|
|
|
private void ResetInterrupts()
|
|
{
|
|
IntEn = false;
|
|
TimIntEn = false;
|
|
INT_MSTR = true;
|
|
}
|
|
}
|
|
} |