Exemple #1
0
        private void RefreshFlags()
        {
            if (_cpu == null)
            {
                return;
            }

            txtZF.Text   = _cpu.CheckFlag(Z80.Flags.Z) ? "1" : "0";
            txtHF.Text   = _cpu.CheckFlag(Z80.Flags.H) ? "1" : "0";
            txtCF.Text   = _cpu.CheckFlag(Z80.Flags.CF) ? "1" : "0";
            txtNF.Text   = _cpu.CheckFlag(Z80.Flags.N) ? "1" : "0";
            txtP_VF.Text = _cpu.CheckFlag(Z80.Flags.P_V) ? "1" : "0";
            txtSF.Text   = _cpu.CheckFlag(Z80.Flags.S) ? "1" : "0";
        }