Files
EightBitNet/Z80/StatusBits.cs
T
Adrian Conlon 9bfd65fbb1 * Update nuget packages
* Namespace z80 a little better
* Add some benchmarks
2026-10-24 21:41:12 +01:00

44 lines
791 B
C#

// <copyright file="StatusBits.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
namespace Zilog
{
using EightBit;
[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,
#pragma warning disable CA1069 // Enums values should not be duplicated
// Parity
PF = Bits.Bit2,
// Overflow
VF = Bits.Bit2,
#pragma warning restore CA1069 // Enums values should not be duplicated
// Negative?
NF = Bits.Bit1,
// Carry
CF = Bits.Bit0,
}
}