Urgent.News

What's breaking now, across thousands of outlets.

Tech

Farcall, a terminal-ready Rust PC+DOS emulator

Farcall is a terminal-ready Rust PC+DOS emulator that allows users to SSH into an IBM PC and land in DOS. This emulator supports classic programs like Zork, NetHack, GW-BASIC, Sopwith, and Digger Remastered. Farcall's creator, inspired by the Vintage Computer Festival Midwest, embarked on a personal mission to write an x86 emulator. The target was the original IBM PC and its 8088 CPU.

Farcall begins by prompting the user to choose a disk to insert, press Enter, and type PLAY at the DOS prompt. Users can return to the launcher by pressing Ctrl-]. To emulate the 8088 chip, Farcall reads in the bytes of a COM file from disk, decodes and executes each instruction in a loop. Each instruction has an opcode byte (0x00 to 0xFF) followed by additional bytes, if necessary.

The emulator was first tested with a "Hello World" COM program, which used the INT 21h instruction to write a string to the screen. After implementing more instructions and BIOS services, Farcall successfully ran MS-DOS 2.0's MORE.COM program. The ultimate goal is to run Windows 3.1 on Farcall, but it currently boots DOS, running programs off 5¼ inch floppy disks.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dialup.net →

More in Tech

More from Friday 20 November →