public DisassemblerWindow(Chip8 chip8)
        {
            InitializeComponent();

            _chip8 = chip8;

            SharpChip8.Core.Disassembler dasm = new SharpChip8.Core.Disassembler(_chip8);
            asmWithLineNumber    = dasm.AsmWithLineNumber;
            asmWithoutLineNumber = dasm.AsmWithoutLineNumber;

            richTextBoxASM.Text = asmWithLineNumber;
        }
        public DisassemblerWindow(Chip8 chip8)
        {
            InitializeComponent();

            _chip8 = chip8;

            SharpChip8.Core.Disassembler dasm = new SharpChip8.Core.Disassembler(_chip8);
            asmWithLineNumber = dasm.AsmWithLineNumber;
            asmWithoutLineNumber = dasm.AsmWithoutLineNumber;

            richTextBoxASM.Text = asmWithLineNumber;
        }
Example #3
0
        public DebugWindow(Chip8 chip8)
        {
            InitializeComponent();
            _chip8 = chip8;

            UpdateInfo();

            chip8.Cpu.CpuRunning += new EventHandler<EventArgs>(Cpu_CpuRunning);

            // Mémoire
            UpdateMemoryView();

            // Désassembleur
            SharpChip8.Core.Disassembler dasm = new SharpChip8.Core.Disassembler(_chip8);
            richTextBoxDasm.Text = dasm.AsmWithLineNumber;
        }
Example #4
0
        public DebugWindow(Chip8 chip8)
        {
            InitializeComponent();
            _chip8 = chip8;

            UpdateInfo();

            chip8.Cpu.CpuRunning += new EventHandler <EventArgs>(Cpu_CpuRunning);

            // Mémoire
            UpdateMemoryView();

            // Désassembleur
            SharpChip8.Core.Disassembler dasm = new SharpChip8.Core.Disassembler(_chip8);
            richTextBoxDasm.Text = dasm.AsmWithLineNumber;
        }