Add dump log button (set LOG_TO_FILE in const.js to use)

This commit is contained in:
copy 2016-07-18 04:24:44 +02:00
parent 6d4a97966c
commit 9968582547
2 changed files with 6 additions and 0 deletions

View file

@ -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">

View file

@ -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();