use bit_struct::{enums, u2};

/// The integer used for storing conditions.
pub type CondRepr = u2;

enums! {
    /// A struct containing an unsigned 2-bit integer for storing a condition.
    pub Condition {
        /// Flag is zero.
        Zero,
        /// Flag isn't zero.
        NotZero,
        /// Flag is carry.
        Carry,
        /// Flag isn't carry.
        NotCarry
    }
}
