clone method

Z80Flags clone()

Clones the current CPU flags

Implementation

Z80Flags clone() {
  return Z80Flags(
    S: S,
    Z: Z,
    Y: Y,
    H: H,
    X: X,
    P: P,
    N: N,
    C: C,
  );
}