Z80Flags class

Z80 CPU Flags

Stores all CPU Flags for the Z80CPU

Note: that the only way to read the X, Y and N can only be read using PUSH AF instruction.

Constructors

Z80Flags({int S = 0, int Z = 0, int Y = 0, int H = 0, int X = 0, int P = 0, int N = 0, int C = 0})
Constructs a new Z80Flags
Z80Flags.fromJson(Map<String, dynamic> flags)
Loads the CPU flags from a Map
factory

Properties

C int
Carry Flag
getter/setter pair
H int
Half Carry Flag
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
N int
Add / Subtract Flag
getter/setter pair
P int
Parity / Overflow Flag
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
S int
Sign Flag
getter/setter pair
X int
Undocumented. Contains a copy of bit 3 of the result.
getter/setter pair
Y int
Undocumented. Contains a copy of bit 5 of the result.
getter/setter pair
Z int
Zero Flag
getter/setter pair

Methods

clone() Z80Flags
Clones the current CPU flags
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Saves current CPU flags to a Map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited