Show HN: SSH into DOS: I wrote an x86 (IBM PC) emulator dialup.net · 4 points · ...
Show HN @show
Show HN: SSH into DOS: I wrote an x86 (IBM PC) emulator dialup.net · 4 points · 1 comments · HN thread
TL;DR Farcall is a hand-written emulator of the original 1981 IBM PC and its 8088 CPU, written in Rust by a vintage computing enthusiast. The post describes how it grew from running COM files to booting PC-DOS and GLaBIOS, adding CGA graphics, and being served over SSH at intodos.com, where users can run DOS programs like Zork, NetHack and Sopwith in a terminal.
- Started as a Rust command-line program running COM files on macOS; each new program needed more opcodes and DOS/BIOS interrupt handlers implemented.
- Booting real DOS required implementing roughly 200 more instructions plus keyboard, video and floppy services; later, using the GLaBIOS open-source BIOS meant emulating PPI, PIT, DMA and the floppy controller too.
- CGA 320x200 graphics interleave scanlines across two 8 KiB memory halves because the MC6845 CRTC's row register is only 7 bits wide.
- Graphics are streamed to Ghostty and other Kitty-protocol terminals; zlib frames crashed Ghostty, so the author switched to 4-bit palette PNGs, saving over 70% of frame-preparation CPU.
- Performance fixes: checking the clock only every 128 steps removed a bottleneck that took about 43% of CPU time. Roughly six instances per core ran Sopwith before frames dropped.
- Next goals are hard drive support, EGA/VGA, and eventually Windows 3.1, which needs protected mode and a 286 emulator.
Discussion The thread is very small: the only activity is the author's own Show HN post, which introduces the project and invites questions. No other commenters have weighed in yet, so there is no broader debate or mood to report.
- No independent discussion yet; only the author's introduction (most): The sole comment is from the author, who explains the project, the SSH server at intodos.com, and the Kitty graphics frontend, and asks for questions. No other views have been expressed.
Links from the comments