Пример #1
0
        private void RefreshCurrentInstruction()
        {
            string PC = GameBoyRevampedBLL.GetRegister(Register.PC);

            GoToAddress(PC);
            _currentLine = listView.SelectedIndices[0];
        }
Пример #2
0
 private void LoadRegister()
 {
     labelAF.Text      = GameBoyRevampedBLL.GetRegister(Register.AF);
     labelBC.Text      = GameBoyRevampedBLL.GetRegister(Register.BC);
     labelDE.Text      = GameBoyRevampedBLL.GetRegister(Register.DE);
     labelHL.Text      = GameBoyRevampedBLL.GetRegister(Register.HL);
     labelPC.Text      = GameBoyRevampedBLL.GetRegister(Register.PC);
     labelSP.Text      = GameBoyRevampedBLL.GetRegister(Register.SP);
     labelLY.Text      = GameBoyRevampedBLL.GetRegister(Register.LY);
     labelSTAT.Text    = GameBoyRevampedBLL.GetRegister(Register.STAT);
     labelSCX.Text     = GameBoyRevampedBLL.GetRegister(Register.SCX);
     labelSCY.Text     = GameBoyRevampedBLL.GetRegister(Register.SCY);
     labelLCDC.Text    = GameBoyRevampedBLL.GetRegister(Register.LCDC);
     labelCycle.Text   = GameBoyRevampedBLL.GetCycleCount().ToString();
     labelJOYP.Text    = GameBoyRevampedBLL.GetRegister(Register.JOYP);
     labelIE.Text      = LoadCustomRegister(0xFFFF);
     labelIF.Text      = LoadCustomRegister(0xFF0F);
     labelIME.Text     = GameBoyRevampedBLL.GetIME().ToString();
     checkBoxZ.Checked = GameBoyRevampedBLL.GetRegister(Register.Z) == "0001";
     checkBoxN.Checked = GameBoyRevampedBLL.GetRegister(Register.N) == "0001";
     checkBoxH.Checked = GameBoyRevampedBLL.GetRegister(Register.H) == "0001";
     checkBoxC.Checked = GameBoyRevampedBLL.GetRegister(Register.C) == "0001";
 }