Swanium::Core::Flags
Inherits Struct < Value < Object
V30 FLAGS register. Bit 1 always reads as one, matching 8086 behavior.
Constructors
from_u16(value : UInt16) : Flags
Sourcenew(carry : Bool = false, parity : Bool = false, auxiliary_carry : Bool = false, zero : Bool = false, sign : Bool = false, trap : Bool = false, interrupt : Bool = false, direction : Bool = false, overflow : Bool = false)
SourceClass methods
parity_even?(value : UInt8) : Bool
The parity flag covers only the least-significant result byte.
Instance methods
auxiliary_carry
Sourceauxiliary_carry=(auxiliary_carry : Bool)
Sourcecarry
Sourcecarry=(carry : Bool)
Sourcedirection
Sourcedirection=(direction : Bool)
Sourceinterrupt
Sourceinterrupt=(interrupt : Bool)
Sourceoverflow
Sourceoverflow=(overflow : Bool)
Sourceparity
Sourceparity=(parity : Bool)
Sourcesign
Sourcesign=(sign : Bool)
Sourceto_u16
Sourcetrap
Sourcetrap=(trap : Bool)
Sourcezero
Sourcezero=(zero : Bool)
Source