2019-07-14 17:46:57 +01:00
|
|
|
|
// <copyright file="Interrupts.cs" company="Adrian Conlon">
|
|
|
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
|
|
|
// </copyright>
|
2019-07-28 11:50:25 +01:00
|
|
|
|
namespace EightBit.GameBoy
|
2019-07-14 17:46:57 +01:00
|
|
|
|
{
|
2019-07-28 11:50:25 +01:00
|
|
|
|
// IF and IE flags
|
|
|
|
|
[System.Flags]
|
|
|
|
|
public enum Interrupts
|
2019-07-14 17:46:57 +01:00
|
|
|
|
{
|
2019-07-28 11:50:25 +01:00
|
|
|
|
None = 0,
|
|
|
|
|
VerticalBlank = Bits.Bit0, // VBLANK
|
|
|
|
|
DisplayControlStatus = Bits.Bit1, // LCDC Status
|
|
|
|
|
TimerOverflow = Bits.Bit2, // Timer Overflow
|
|
|
|
|
SerialTransfer = Bits.Bit3, // Serial Transfer
|
|
|
|
|
KeypadPressed = Bits.Bit4, // Hi-Lo transition of P10-P13
|
2019-07-14 17:46:57 +01:00
|
|
|
|
}
|
|
|
|
|
}
|