Add dump log button (set LOG_TO_FILE in const.js to use)
This commit is contained in:
parent
6d4a97966c
commit
9968582547
|
@ -125,6 +125,7 @@
|
|||
<input type="button" value="Dump GDT/LDT" id="dump_gdt">
|
||||
<input type="button" value="Dump IDT" id="dump_idt">
|
||||
<input type="button" value="Dump page tables" id="dump_pt">
|
||||
<input type="button" value="Dump log" id="dump_log">
|
||||
<br>
|
||||
|
||||
<input type="button" value="Pause" id="run">
|
||||
|
|
|
@ -1120,6 +1120,11 @@
|
|||
$("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("\n"), "v86.log");
|
||||
};
|
||||
|
||||
$("dump_instructions_file").onclick = function()
|
||||
{
|
||||
var ins = debug.get_instructions();
|
||||
|
|
Loading…
Reference in a new issue