mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-08-17 14:29:05 +00:00
9a06b1743f
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
33 lines
474 B
C#
33 lines
474 B
C#
namespace EightBit
|
|
{
|
|
using System;
|
|
|
|
[Flags]
|
|
public enum StatusBits : byte
|
|
{
|
|
// Negative
|
|
NF = Bits.Bit7,
|
|
|
|
// Overflow
|
|
VF = Bits.Bit6,
|
|
|
|
// reserved
|
|
RF = Bits.Bit5,
|
|
|
|
// Brk
|
|
BF = Bits.Bit4,
|
|
|
|
// D (use BCD for arithmetic)
|
|
DF = Bits.Bit3,
|
|
|
|
// I (IRQ disable)
|
|
IF = Bits.Bit2,
|
|
|
|
// Zero
|
|
ZF = Bits.Bit1,
|
|
|
|
// Carry
|
|
CF = Bits.Bit0,
|
|
}
|
|
}
|