EightBitNet/Z80/StatusBits.cs
Adrian Conlon cd4af67177 Work my way through a bunch of the analysis suggestions.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-06-22 00:00:15 +01:00

40 lines
646 B
C#

// <copyright file="StatusBits.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
namespace EightBit
{
using System;
[Flags]
public enum StatusBits
{
// Negative
SF = Bits.Bit7,
// Zero
ZF = Bits.Bit6,
// Undocumented Y flag
YF = Bits.Bit5,
// Half carry
HC = Bits.Bit4,
// Undocumented X flag
XF = Bits.Bit3,
// Parity
PF = Bits.Bit2,
// Overflow
VF = Bits.Bit2,
// Negative?
NF = Bits.Bit1,
// Carry
CF = Bits.Bit0,
}
}