mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-01-10 00:29:23 +00:00
38 lines
752 B
C#
38 lines
752 B
C#
// <copyright file="StatusBits.cs" company="Adrian Conlon">
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace EightBit
|
|
{
|
|
[Flags]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1028:Enum Storage should be Int32", Justification = "Must be castable to byte")]
|
|
public enum StatusBits : byte
|
|
{
|
|
None = 0,
|
|
|
|
// Carry
|
|
CF = Bits.Bit0,
|
|
|
|
// Zero
|
|
ZF = Bits.Bit1,
|
|
|
|
// I (IRQ disable)
|
|
IF = Bits.Bit2,
|
|
|
|
// D (use BCD for arithmetic)
|
|
DF = Bits.Bit3,
|
|
|
|
// Brk
|
|
BF = Bits.Bit4,
|
|
|
|
// reserved
|
|
RF = Bits.Bit5,
|
|
|
|
// Overflow
|
|
VF = Bits.Bit6,
|
|
|
|
// Negative
|
|
NF = Bits.Bit7,
|
|
}
|
|
}
|