struct

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
Source
new(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)
Source

Class methods

parity_even?(value : UInt8) : Bool

The parity flag covers only the least-significant result byte.

Source

Instance methods

auxiliary_carry
Source
auxiliary_carry=(auxiliary_carry : Bool)
Source
carry
Source
carry=(carry : Bool)
Source
direction
Source
direction=(direction : Bool)
Source
interrupt
Source
interrupt=(interrupt : Bool)
Source
overflow
Source
overflow=(overflow : Bool)
Source
parity
Source
parity=(parity : Bool)
Source
sign
Source
sign=(sign : Bool)
Source
to_u16
Source
trap
Source
trap=(trap : Bool)
Source
zero
Source
zero=(zero : Bool)
Source