2019-10-31 13:43:25 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Common.Components.I8048
|
|
|
|
{
|
|
|
|
public partial class I8048
|
|
|
|
{
|
|
|
|
private void IRQ_()
|
|
|
|
{
|
|
|
|
Regs[ADDR] = 0xFFF8;
|
|
|
|
PopulateCURINSTR(IDLE,
|
|
|
|
IDLE,
|
|
|
|
IDLE,
|
|
|
|
RD_INC, ALU, ADDR,
|
|
|
|
RD_INC, ALU2, ADDR,
|
|
|
|
SET_ADDR, PC, ALU, ALU2);
|
|
|
|
|
|
|
|
IRQS = 19;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool IRQPending;
|
2019-11-18 22:33:55 +00:00
|
|
|
public bool TIRQPending;
|
2019-10-31 13:43:25 +00:00
|
|
|
public bool IntEn;
|
2019-11-18 22:33:55 +00:00
|
|
|
public bool TimIntEn;
|
2019-10-31 13:43:25 +00:00
|
|
|
|
|
|
|
public Action IRQCallback = delegate () { };
|
|
|
|
|
|
|
|
private void ResetInterrupts()
|
|
|
|
{
|
2019-11-30 14:28:53 +00:00
|
|
|
IntEn = false;
|
|
|
|
TimIntEn = false;
|
2019-10-31 13:43:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|