EightBitNet/Z80/StatusBits.cs
Adrian Conlon ea82c58777 Add Z80 processor (untested, but complete)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-16 21:32:34 +00:00

40 lines
642 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,
// Zero
VF = Bits.Bit2,
// Negative?
NF = Bits.Bit1,
// Carry
CF = Bits.Bit0,
}
}