<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>X86 on csegura</title><link>https://blog.romheat.net/tags/x86/</link><description>Recent content in X86 on csegura</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 16 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.romheat.net/tags/x86/index.xml" rel="self" type="application/rss+xml"/><item><title>emu_x86 Part 3: Inside the Emulator</title><link>https://blog.romheat.net/posts/2026/26_11_16_emu_x86_part_3_inside_the_emulator/</link><pubDate>Mon, 16 Nov 2026 00:00:00 +0000</pubDate><guid>https://blog.romheat.net/posts/2026/26_11_16_emu_x86_part_3_inside_the_emulator/</guid><description>&lt;p>This is the last of three articles about &lt;strong>emu_x86&lt;/strong>. &lt;a href="https://blog.romheat.net/posts/2026/26_11_15_emu_x86_part_1_pc_in_the_browser/">Part 1&lt;/a> shows how to use it and &lt;a href="https://blog.romheat.net/posts/2026/26_11_15_emu_x86_part_2_tools/">Part 2&lt;/a> covers the tools. Here I describe how it works inside, and the bugs that taught me the most.&lt;/p>
&lt;h2 id="the-two-pcs">The two PCs&lt;/h2>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>&lt;/th>
 &lt;th>IBM PC/XT&lt;/th>
 &lt;th>386 PC&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>CPU&lt;/td>
 &lt;td>Intel 8088, 4.77 MHz&lt;/td>
 &lt;td>386 (also 486, Pentium or Pentium II)&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Firmware&lt;/td>
 &lt;td>GLaBIOS&lt;/td>
 &lt;td>SeaBIOS and SeaVGABIOS&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Video&lt;/td>
 &lt;td>MDA and CGA&lt;/td>
 &lt;td>VGA with VESA modes up to 1600x1200&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Sound&lt;/td>
 &lt;td>PC speaker&lt;/td>
 &lt;td>PC speaker, Sound Blaster 16 with FM&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Disks&lt;/td>
 &lt;td>Floppies, a hard disk, a CD-ROM&lt;/td>
 &lt;td>Floppies, an IDE hard disk, a bootable CD-ROM&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Network&lt;/td>
 &lt;td>NE1000&lt;/td>
 &lt;td>RTL8029 or NE2000&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>RAM&lt;/td>
 &lt;td>640 KB&lt;/td>
 &lt;td>16 MB by default, up to 512 MB in the page&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h2 id="one-core-two-hosts">One core, two hosts&lt;/h2>
&lt;p>The emulator core is portable C with no calls to the operating system. That is what lets the same code run in two places: in the browser, compiled to WebAssembly with Emscripten, with a page of plain HTML and ES modules around it, and on Linux, as command line programs and a native SDL2 window.&lt;/p></description></item></channel></rss>