BizHawk/BizHawk.Emulation.Cores/CPUs/Intel8048/Interrupts.cs

33 lines
539 B
C#
Raw Normal View History

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;
public bool TIRQPending;
2019-10-31 13:43:25 +00:00
public bool IntEn;
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
}
}
}