8086tiny PC XT-compatible emulator

8Bit, 16bit, Atari, Commodore, Apple, Spectrum, Acorn, TSR. All now defunked computer systems.

8086tiny PC XT-compatible emulator

Postby crustyasp46 » Wed Feb 05, 2014 5:04 pm

logo.gif


8086tiny is a free, open source PC XT-compatible emulator/virtual machine written in C.
About 8086tiny 1.10

8086tiny is a free, open source PC XT-compatible emulator/virtual machine written in C. It is, we believe, the smallest of its kind (the fully-commented source is under 25K). Despite its size, 8086tiny provides a highly accurate 8086 CPU emulation, together with support for PC peripherals including XT-style keyboard, floppy/hard disk, clock, and Hercules graphics. 8086tiny is powerful enough to run software like AutoCAD, Windows 3.0, and legacy PC games.

8086tiny is highly portable and runs on practically any little endian machine, from simple 32-bit MCUs upwards. 8086tiny has successfully been deployed on 32-bit/64-bit Intel machines (Windows, Mac OS X and Linux), Nexus 4/ARM (Android), iPad 3 and iPhone 5S (iOS), and Raspberry Pi (Linux).

The philosophy of 8086tiny is to keep the code base as small as possible, and through the open source license and repository on GitHub encourage individual developers to tune and extend it as per their specific requirements, adding support, for example, for more complex instruction sets (e.g. Pentium) or peripherals (e.g. mouse). Any questions, comments or suggestions are very welcome in our forum.

An obfuscated version of 8086tiny (condensed into just 4043 bytes of C code) was a winner of the 2013 IOCCC contest. Significant interest followed for a documented, commented, maintainable version. The result is the distribution presented here.
Feature Highlights

8086tiny's feature highlights include:

Highly accurate, complete 8086 CPU emulation (including undocumented features and behavior)
Support for all standard PC peripherals: keyboard, 3.5" floppy drive, hard drive, video (Hercules graphics and CGA color text mode, including direct video memory access), real-time clock, timers
Disk images are compatible with standard Windows/Mac/UNIX mount tools for simple interoperability
Complete source code provided (including custom BIOS)

8086tiny is highly portable, with minimal system requirements:

Minimal C runtime library support required (uses POSIX file I/O and time functions only - no memory management or string functions)
Uses SDL 1.2 for graphics, but can compile without SDL for text-only applications
Storage requirement: typically around 20KB for compiled binary, 9KB for BIOS image, and 720KB/1.44MB for floppy disk image
System RAM requirement: around 1.5MB

Screenshots

MS-DOS 6.22

Windows 3.0

Lotus 1-2-3 R2.4

MS Flight Simulator 4

Linux/ELKS 0.1.5

Microsoft QBASIC
Applications

Some possible applications:

Run legacy PC software and games on modern hardware
Teach computer architecture and Intel assembly language in a safe, sandboxed environment
Deploy on Raspberry Pi to make the world's cheapest ($25) complete IBM-compatible PC
Extend the code base to develop a lean, modern-processor VM

If you develop an application that makes use of 8086tiny, and would like a link to it here, please get in touch.
License

8086tiny is free to use for any purpose, commercial or non-commercial, and is made available under the MIT License.

If 8086tiny brings you joy or profit, the author welcomes modest donations as a token of appreciation.
Code: Select all
http://www.megalith.co.uk/8086tiny/
User avatar
crustyasp46
He's Everyones Daddy
He's Everyones Daddy
Next LVL Up at : 1750
Next LVL Up at : 1750
 
Posts: 1716
Joined: Sun Jun 06, 2010 11:06 pm
Has thanked: 2653 times
Been thanked: 1006 times

Return to Retro Computing

Who is online

Users browsing this forum: No registered users and 204 guests

cron