Dead code

This commit is contained in:
Fabian 2020-12-31 19:14:34 -06:00
parent bc11d7089e
commit 7815b20e71
2 changed files with 0 additions and 18 deletions

View file

@ -166,11 +166,6 @@
</div>
<div id="runtime_options" style="display: none">
<input type="button" value="Step" id="step">
<input type="button" value="Run until" id="run_until">
<input type="button" value="Debugger" id="debugger">
<input type="button" value="Dump Instructions" id="dump_instructions">
<input type="button" value="Dump Instructions to file" id="dump_instructions_file">
<input type="button" value="Dump Registers" id="dump_regs">
<input type="button" value="Dump GDT/LDT" id="dump_gdt">
<input type="button" value="Dump IDT" id="dump_idt">

View file

@ -1863,29 +1863,16 @@
// called as soon as soon as emulation is started, in debug mode
var debug = emulator.v86.cpu.debug;
$("step").onclick = debug.step.bind(debug);
$("run_until").onclick = debug.run_until.bind(debug);
$("dump_gdt").onclick = debug.dump_gdt_ldt.bind(debug);
$("dump_idt").onclick = debug.dump_idt.bind(debug);
$("dump_regs").onclick = debug.dump_regs.bind(debug);
$("dump_pt").onclick = debug.dump_page_directory.bind(debug);
$("dump_instructions").onclick = debug.dump_instructions.bind(debug);
$("dump_log").onclick = function()
{
dump_file(log_data.join(""), "v86.log");
};
$("dump_instructions_file").onclick = function()
{
var ins = debug.get_instructions();
if(ins)
{
dump_file(ins, "trace.txt");
}
};
var cpu = emulator.v86.cpu;
$("debug_panel").style.display = "block";