123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <!doctype html>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>v86 (debug)</title>
- <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
- <script src="src/const.js"></script>
- <script src="src/config.js"></script>
- <script src="src/log.js"></script>
- <script src="src/lib.js"></script>
- <script src="src/buffer.js"></script>
- <script src="src/cpu.js"></script>
- <script src="src/debug.js"></script>
- <script src="src/io.js"></script>
- <script src="src/main.js"></script>
- <script src="src/ide.js"></script>
- <script src="src/pci.js"></script>
- <script src="src/floppy.js"></script>
- <script src="src/memory.js"></script>
- <script src="src/dma.js"></script>
- <script src="src/pit.js"></script>
- <script src="src/vga.js"></script>
- <script src="src/ps2.js"></script>
- <script src="src/rtc.js"></script>
- <script src="src/uart.js"></script>
- <script src="src/acpi.js"></script>
- <script src="src/apic.js"></script>
- <script src="src/ioapic.js"></script>
- <script src="src/sb16.js"></script>
- <script src="src/ne2k.js"></script>
- <script src="src/state.js"></script>
- <script src="src/virtio.js"></script>
- <script src="src/virtio_console.js"></script>
- <script src="src/virtio_net.js"></script>
- <script src="src/bus.js"></script>
- <script src="src/elf.js"></script>
- <script src="src/kernel.js"></script>
- <script src="src/browser/main.js"></script>
- <script src="src/browser/screen.js"></script>
- <script src="src/browser/keyboard.js"></script>
- <script src="src/browser/mouse.js"></script>
- <script src="src/browser/speaker.js"></script>
- <script src="src/browser/serial.js"></script>
- <script src="src/browser/network.js"></script>
- <script src="src/browser/fake_network.js"></script>
- <script src="src/browser/fetch_network.js"></script>
- <script src="src/browser/wisp_network.js"></script>
- <script src="src/browser/starter.js"></script>
- <script src="src/browser/worker_bus.js"></script>
- <script src="src/browser/print_stats.js"></script>
- <script src="src/browser/filestorage.js"></script>
- <script src="lib/jor1k.js"></script>
- <script src="lib/9p.js"></script>
- <script src="lib/filesystem.js"></script>
- <script src="lib/marshall.js"></script>
- <script src="build/capstone-x86.min.js"></script>
- <script src="build/libwabt.js"></script>
- <link rel="stylesheet" href="v86.css">
- <div>
- <div id="boot_options">
- <h4>Debugger</h4>
- <input type="button" value="ReactOS" id="start_reactos">
- <input type="button" value="ReactOS (boot)" id="start_reactos-boot">
- <br>
- <input type="button" value="MS-DOS" id="start_msdos">
- <input type="button" value="FreeDOS" id="start_freedos">
- <input type="button" value="FreeDOS with FreeGEM" id="start_freegem">
- <br>
- <input type="button" value="Windows 1.01" id="start_windows1">
- <input type="button" value="Windows 3.0" id="start_windows30">
- <input type="button" value="Windows 3.1" id="start_windows31">
- <input type="button" value="Windows 95" id="start_windows95">
- <input type="button" value="Windows 95 (boot)" id="start_windows95-boot">
- <br>
- <input type="button" value="Windows 98" id="start_windows98">
- <input type="button" value="Windows 98 (boot)" id="start_windows98-boot">
- <input type="button" value="Windows NT 3.1" id="start_windowsnt3">
- <input type="button" value="Windows NT 4.0" id="start_windowsnt4">
- <input type="button" value="Windows 2000" id="start_windows2000">
- <input type="button" value="Windows 2000 (boot)" id="start_windows2000-boot">
- <br>
- <input type="button" value="Linux 2.6 (Buildroot)" id="start_linux26">
- <input type="button" value="Linux 3.18 (Buildroot)" id="start_linux3">
- <input type="button" value="Linux 4.16 (Buildroot)" id="start_linux4">
- <input type="button" value="Linux 5.6 (Buildroot)" id="start_buildroot">
- <input type="button" value="Tiny Core" id="start_tinycore">
- <input type="button" value="OpenWRT" id="start_openwrt">
- <br>
- <input type="button" value="Arch Linux" id="start_archlinux">
- <input type="button" value="Arch Linux (boot)" id="start_archlinux-boot">
- <input type="button" value="Damn Small Linux" id="start_dsl">
- <br>
- <input type="button" value="FreeBSD" id="start_freebsd">
- <input type="button" value="FreeBSD (boot)" id="start_freebsd-boot">
- <input type="button" value="OpenBSD" id="start_openbsd">
- <input type="button" value="NetBSD" id="start_netbsd">
- <br>
- <input type="button" value="Haiku" id="start_haiku">
- <input type="button" value="Haiku (boot)" id="start_haiku-boot">
- <input type="button" value="Minix" id="start_minix">
- <input type="button" value="SerenityOS" id="start_serenity">
- <input type="button" value="QNX" id="start_qnx">
- <input type="button" value="9front" id="start_9front">
- <br>
- <input type="button" value="Oberon" id="start_oberon">
- <input type="button" value="KolibriOS" id="start_kolibrios">
- <input type="button" value="Solar OS" id="start_solos">
- <input type="button" value="Bootchess" id="start_bootchess">
- <input type="button" value="HelenOS" id="start_helenos">
- <br>
- <!--
- <hr>
- Restore state: <input type="file" id="restore_state">
- -->
- <br>
- <hr>
- <table>
- <tr>
- <td width="350"><label for="cdrom_image">CD image</label></td>
- <td>
- <input type="file" id="cdrom_image">
- </td>
- </tr>
- <tr>
- <td><label for="floppy_image">Floppy disk image</label></td>
- <td> <input type="file" id="floppy_image"><br></td>
- </tr>
- <tr>
- <td><label for="hda_image">Hard disk image</label></td>
- <td><input type="file" id="hda_image"><br></td>
- </tr>
- <tr>
- <td>Second hard disk image</td>
- <td><input type="file" id="hdb_image"><br></td>
- </tr>
- <tr>
- <td><label for="multiboot_image">Multiboot kernel image (experimental)</label></td>
- <td><input type="file" id="multiboot_image"><br></td>
- </tr>
- <tr>
- <td><label for="bzimage">Kernel image (bzimage)</label></td>
- <td><input type="file" id="bzimage"><br></td>
- </tr>
- <tr>
- <td><label for="initrd">initrd</label></td>
- <td><input type="file" id="initrd"><br></td>
- </tr>
- <tr>
- <td><label for="bios">BIOS</label></td>
- <td><input type="file" id="bios"><br></td>
- </tr>
- <tr>
- <td colspan="2"><small>Disk images are not uploaded to the server</small><hr></td>
- </tr>
- <tr>
- <td><label for="memory_size">Memory size</label></td>
- <td>
- <input id="memory_size" type="number" value="128" min="16" max="2048" step="16"> MB<br>
- </td>
- </tr>
- <tr>
- <td><label for="vga_memory_size">Video Memory size</label></td>
- <td>
- <input id="vga_memory_size" type="number" value="8" min="1" max="128" step="1"> MB<br>
- </td>
- </tr>
- <tr>
- <td><label for="relay_url">Networking proxy (leave blank to disable)</label></td>
- <td>
- <input id="relay_url" type="text" value="wss://relay.widgetry.org/">
- </td>
- </tr>
- <tr>
- <td colspan="2"><hr></td>
- </tr>
- <tr>
- <td><label for="disable_audio">Disable audio</label></td>
- <td>
- <input id="disable_audio" type="checkbox"><br>
- </td>
- </tr>
- <tr>
- <td><label for="acpi">Enable ACPI (experimental)</label></td>
- <td>
- <input id="acpi" type="checkbox"><br>
- </td>
- </tr>
- <tr>
- <td colspan="2"><hr></td>
- </tr>
- <tr>
- <td><label for="boot_order">Boot order</label></td>
- <td>
- <select id="boot_order">
- <option value="0">Auto</option>
- <option value="213">CD / Floppy / Hard Disk</option>
- <option value="123">CD / Hard Disk / Floppy</option>
- <option value="231">Floppy / CD / Hard Disk</option>
- <option value="321">Floppy / Hard Disk / CD</option>
- <option value="312">Hard Disk / Floppy / CD</option>
- <option value="132">Hard Disk / CD / Floppy</option>
- </select>
- </td>
- </tr>
- </table>
- <br>
- <button id="start_emulation">Start Emulation</button>
- <br>
- <br>
- </div>
- <div id="runtime_options" style="display: none">
- <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">
- <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">
- <input type="button" value="Reset" id="reset">
- <input type="button" value="Exit" id="exit">
- <input type="button" value="Send Ctrl-Alt-Del" id="ctrlaltdel">
- <input type="button" value="Send Alt-Tab" id="alttab">
- <input type="button" value="Get floppy image" id="get_fda_image">
- <input type="button" value="Get second floppy image" id="get_fdb_image">
- <input type="button" value="Get hard disk image" id="get_hda_image">
- <input type="button" value="Get second hard disk image" id="get_hdb_image">
- <input type="button" value="Get CD-ROM image" id="get_cdrom_image">
- <input type="button" value="Insert floppy image" id="change_fda_image">
- <input type="button" value="Save State" id="save_state">
- <input type="button" value="Load State" id="load_state"> <input type="file" style="display: none" id="load_state_input">
- <input type="button" value="Memory Dump" id="memory_dump">
- <input type="button" value="Capture network traffic" id="capture_network_traffic">
- <input type="button" value="Disable mouse" id="toggle_mouse">
- <input type="button" value="Lock mouse" id="lock_mouse">
- <input type="button" value="Go fullscreen" id="fullscreen">
- <input type="button" value="Take screenshot" id="take_screenshot">
- <input type="button" value="Mute" id="mute">
- <label>
- Scale:
- <input type="number" min="0.25" step="0.25" value="1.0" id="scale" style="width: 50px">
- </label>
- <br>
- </div>
- <pre style="margin: 0" id="log_levels"></pre>
- <pre style="display: none" id="loading"></pre>
- <br>
- </div>
- <div id="screen_container" style="display: none">
- <div id="screen"></div>
- <canvas id="vga"></canvas>
- <div style="position: absolute; top: 0; z-index: 10">
- <textarea class="phone_keyboard"></textarea>
- </div>
- </div>
- <div id="runtime_infos" style="display: none">
- Running: <span id="running_time">0s</span> <br>
- Speed: <span id="speed">0</span> mIPS<br>
- Avg speed: <span id="avg_speed">0</span> mIPS<br>
- <br>
- <div id="info_storage" style="display: none">
- <b>IDE device<span id="ide_type"></span></b><br>
- Sectors read: <span id="info_storage_sectors_read">0</span><br>
- Bytes read: <span id="info_storage_bytes_read">0</span><br>
- Sectors written: <span id="info_storage_sectors_written">0</span><br>
- Bytes written: <span id="info_storage_bytes_written">0</span><br>
- Status: <span id="info_storage_status"></span><br>
- <br>
- </div>
- <div id="info_filesystem" style="display: none">
- <b>9p Filesystem</b><br>
- Bytes read: <span id="info_filesystem_bytes_read">0</span><br>
- Bytes written: <span id="info_filesystem_bytes_written">0</span><br>
- <div style="white-space: nowrap; overflow-x: hidden">Last file: <span id="info_filesystem_last_file"></span></div>
- Status: <span id="info_filesystem_status"></span><br>
- <br>
- </div>
- <div id="info_network" style="display: none">
- <b>Network</b><br>
- Bytes received: <span id="info_network_bytes_received">0</span><br>
- Bytes transmitted: <span id="info_network_bytes_transmitted">0</span><br>
- <br>
- </div>
- <b>VGA</b><br>
- Mode: <span id="info_vga_mode"></span><br>
- Resolution: <span id="info_res">-</span><br>
- <br>
- Mouse: <span id="info_mouse_enabled">No</span><br>
- </div>
- <div id="filesystem_panel" style="display: none">
- <label>
- Send files to emulator<br>
- <input type="file" id="filesystem_send_file" multiple>
- </label>
- <br><br>
- <label>
- Get file from emulator<br>
- <input type="text" id="filesystem_get_file" placeholder="Absolute path">
- </label>
- </div>
- <div id="debug_panel" style="display: none">
- </div>
- <br style="clear: both"><br>
- <textarea spellcheck="false" cols="40" rows="12" id="serial" style="display: none">
- </textarea>
- <div id="terminal"></div>
|