debug.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <!doctype html>
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  3. <title>Virtual x86</title>
  4. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  5. <script src="loader.js"></script>
  6. <link rel="stylesheet" href="v86.css">
  7. <div>
  8. <div id="boot_options">
  9. <h4>Debugger</h4>
  10. <input type="button" value="ReactOS" id="start_reactos">
  11. <input type="button" value="Windows ME" id="start_windowsme">
  12. <input type="button" value="Windows 95" id="start_windows95">
  13. <input type="button" value="FreeBSD" id="start_freebsd">
  14. <input type="button" value="Windows 98" id="start_windows98">
  15. <input type="button" value="Arch Linux" id="start_archlinux">
  16. <input type="button" value="Oberon" id="start_oberon">
  17. <input type="button" value="KolibriOS" id="start_kolibrios">
  18. <input type="button" value="Linux 2.6" id="start_linux26">
  19. <input type="button" value="Linux 3.18" id="start_linux3">
  20. <input type="button" value="Windows 1.01" id="start_windows1">
  21. <input type="button" value="FreeDOS" id="start_freedos">
  22. <input type="button" value="MS-DOS" id="start_msdos">
  23. <input type="button" value="OpenBSD" id="start_openbsd">
  24. <input type="button" value="Solar OS" id="start_solos">
  25. <input type="button" value="Bootchess" id="start_bootchess">
  26. <input type="button" value="Test" id="start_test">
  27. <br>
  28. <!--
  29. <hr>
  30. Restore state: <input type="file" id="restore_state">
  31. -->
  32. <br>
  33. <hr>
  34. <table>
  35. <tr>
  36. <td width="250">CD image</td>
  37. <td>
  38. <!--
  39. <select>
  40. <option>None</option>
  41. <option>Local file</option>
  42. <option>External Server</option>
  43. </select>-->
  44. <input type="file" id="cd_image">
  45. </td>
  46. </tr>
  47. <tr>
  48. <td>Floppy disk image</td>
  49. <td> <input type="file" id="floppy_image"><br></td>
  50. </tr>
  51. <tr>
  52. <td>Hard drive disk image</td>
  53. <td><input type="file" id="hd_image"><br></td>
  54. </tr>
  55. <tr>
  56. <td>Multiboot kernel image</td>
  57. <td><input type="file" id="multiboot_image"><br></td>
  58. </tr>
  59. <tr>
  60. <td colspan="2"><hr></td>
  61. </tr>
  62. <tr>
  63. <td>Memory size</td>
  64. <td>
  65. <input id="memory_size" type="number" value="128" min="16" max="2048" step="16"> MB<br>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td>Video Memory size</td>
  70. <td>
  71. <input id="video_memory_size" type="number" value="8" min="1" max="128" step="1"> MB<br>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td colspan="2"><hr></td>
  76. </tr>
  77. <!--
  78. <tr>
  79. <td>Execution Cap </td>
  80. <td> <input type="number" value="100" min="5" max="100" step="5"> %<br> </td>
  81. </tr>
  82. -->
  83. <tr>
  84. <td>Boot order</td>
  85. <td>
  86. <select id="boot_order">
  87. <option value="213">CD / Floppy / Hard Disk</option>
  88. <option value="123">CD / Hard Disk / Floppy</option>
  89. <option value="231">Floppy / CD / Hard Disk</option>
  90. <option value="321">Floppy / Hard Disk / CD</option>
  91. <option value="312">Hard Disk / Floppy / CD</option>
  92. <option value="132">Hard Disk / CD / Floppy</option>
  93. </select>
  94. </td>
  95. </tr>
  96. </table>
  97. <br>
  98. <button id="start_emulation">Start Emulation</button>
  99. <!--
  100. <br>
  101. <div id="setup_error">Error: Video size must be at least over 9000</div>
  102. -->
  103. <!--
  104. <br>
  105. <br>
  106. Link to this configuration: <a href="" id="config_link">http://copy.sh/v86/?a=b&amp;c=d</a>
  107. -->
  108. <br>
  109. <br>
  110. </div>
  111. <div id="runtime_options" style="display: none">
  112. <input type="button" value="Step" id="step">
  113. <input type="button" value="Run until" id="run_until">
  114. <input type="button" value="Debugger" id="debugger">
  115. <input type="button" value="Dump Instructions" id="dump_instructions">
  116. <input type="button" value="Dump Instructions to file" id="dump_instructions_file">
  117. <input type="button" value="Dump Registers" id="dump_regs">
  118. <input type="button" value="Dump GDT/LDT" id="dump_gdt">
  119. <input type="button" value="Dump IDT" id="dump_idt">
  120. <input type="button" value="Dump page tables" id="dump_pt">
  121. <input type="button" value="Dump log" id="dump_log">
  122. <br>
  123. <input type="button" value="Pause" id="run">
  124. <input type="button" value="Reset" id="reset">
  125. <input type="button" value="Exit" id="exit">
  126. <input type="button" value="Send Ctrl-Alt-Del" id="ctrlaltdel">
  127. <input type="button" value="Send Alt-Tab" id="alttab">
  128. <input type="button" value="Get floppy image" id="get_fda_image">
  129. <input type="button" value="Get second floppy image" id="get_fdb_image">
  130. <input type="button" value="Get hard disk image" id="get_hda_image">
  131. <input type="button" value="Get second hard disk image" id="get_hdb_image">
  132. <input type="button" value="Get cdrom image" id="get_cdrom_image">
  133. <input type="button" value="Save State" id="save_state">
  134. <input type="button" value="Load State" id="load_state"> <input type="file" style="display: none" id="load_state_input">
  135. <input type="button" value="Memory Dump (raw)" id="memory_dump">
  136. <input type="button" value="Disable mouse" id="toggle_mouse">
  137. <input type="button" value="Lock mouse" id="lock_mouse">
  138. <input type="button" value="Go fullscreen" id="fullscreen">
  139. <input type="button" value="Take screenshot (only graphic modes)" id="take_screenshot">
  140. <label>
  141. Scale:
  142. <input type="number" min="0.25" step="0.25" value="1.0" id="scale" style="width: 50px">
  143. </label>
  144. <br>
  145. <label id="change_fda" style="display: none">
  146. Change floppy:
  147. <input type="file">
  148. </label>
  149. <label id="change_cdrom" style="display: none">
  150. Change CD:
  151. <input type="file">
  152. </label>
  153. </div>
  154. <pre style="margin: 0" id="log_levels"></pre>
  155. <pre style="margin: 3px 0px 0px 0px" id="debug_infos"></pre>
  156. <pre style="display: none" id="loading"></pre>
  157. <br>
  158. </div>
  159. <div id="screen_container" style="display: none">
  160. <div id="screen"></div>
  161. <canvas id="vga"></canvas>
  162. </div>
  163. <input type="text" class="phone_keyboard" style="display: none">
  164. <div id="runtime_infos" style="display: none">
  165. Running: <span id="running_time">0s</span> <br>
  166. Speed: <span id="speed">0</span>kIPS<br>
  167. Avg speed: <span id="avg_speed">0</span>kIPS<br>
  168. <br>
  169. <div id="info_storage" style="display: none">
  170. <b>IDE device (HDA or CDROM)</b><br>
  171. Sectors read: <span id="info_storage_sectors_read">0</span><br>
  172. Bytes read: <span id="info_storage_bytes_read">0</span><br>
  173. Sectors written: <span id="info_storage_sectors_written">0</span><br>
  174. Bytes written: <span id="info_storage_bytes_written">0</span><br>
  175. Status: <span id="info_storage_status"></span><br>
  176. <br>
  177. </div>
  178. <div id="info_filesystem" style="display: none">
  179. <b>9p Filesystem</b><br>
  180. Bytes read: <span id="info_filesystem_bytes_read">0</span><br>
  181. Bytes written: <span id="info_filesystem_bytes_written">0</span><br>
  182. Last file: <span id="info_filesystem_last_file" style="word-wrap: break-word"></span><br>
  183. Status: <span id="info_filesystem_status"></span><br>
  184. <br>
  185. </div>
  186. <div id="info_network" style="display: none">
  187. <b>Network</b><br>
  188. Bytes received: <span id="info_network_bytes_received">0</span><br>
  189. Bytes transmitted: <span id="info_network_bytes_transmitted">0</span><br>
  190. <br>
  191. </div>
  192. <b>VGA</b><br>
  193. Mode: <span id="info_vga_mode"></span><br>
  194. Resolution: <span id="info_res">-</span><br>
  195. BPP: <span id="info_bpp">-</span><br>
  196. <br>
  197. Mouse: <span id="info_mouse_enabled">No</span><br>
  198. <!-- Keyboard: <span id="info_keyboard_enabled">-</span><br> -->
  199. </div>
  200. <div id="filesystem_panel" style="display: none">
  201. <label>
  202. Send files to emulator<br>
  203. <input type="file" id="filesystem_send_file" multiple>
  204. </label>
  205. <br><br>
  206. <label>
  207. Get file from emulator<br>
  208. <input type="text" id="filesystem_get_file" placeholder="Absolute path">
  209. </label>
  210. </div>
  211. <div id="debug_panel" style="display: none">
  212. </div>
  213. <br style="clear:both"><br>
  214. <textarea readonly id="log" style="display:none"></textarea>
  215. <textarea spellcheck="false" cols="40" rows="12" id="serial" style="display:none">
  216. </textarea>