void MainWindow::on_start_cx_button_clicked(){ _cpu.write_byte_to_memory(CS, 0x100, 0xBA); _cpu.write_byte_to_memory(CS, 0x101, 0xFB); _cpu.write_byte_to_memory(CS, 0x102, 0xFF); _cpu.write_byte_to_memory(CS, 0x103, 0xEC); _cpu.write_byte_to_memory(CS, 0x104, 0xBA); _cpu.write_byte_to_memory(CS, 0x105, 0xFA); _cpu.write_byte_to_memory(CS, 0x106, 0xFF); _cpu.write_byte_to_memory(CS, 0x107, 0xEE); _cpu.write_byte_to_memory(CS, 0x108, 0xEB); _cpu.write_byte_to_memory(CS, 0x109, 0xF6); _cpu._registers[IP] = 0x100; _cpu._stop_address = 0x10A; _cpu.run();}
void intel8086::run(){ QtConcurrent::run(this, &intel8086::execute);}void intel8086::execute(){ while(_registers[IP] <= _stop_address){ step(); }}
C++ (Qt)void intel8086::execute(){ while(_registers[IP] < _stop_address){ step(); }}
C++ (Qt)void intel8086::run(){ execute();} void intel8086::execute(){ while(_registers[IP] <= _stop_address){ step(); }}