Skip to content

robin7g/pi86

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi86

This is a fork of the original Raspberry Pi 8086 Hat project from homebrew8088 https://github.com/homebrew8088/pi86

PI86 In action

This is the code for my 8088/8086 (Really V20/V30) Raspberry Pi "hat"

https://www.homebrew8088.com/home/raspberry-pi-second-project

How it works

The Raspberry PI toggles the Clock then reads the Control Bus and then provides the 8088 what it is requesting. It will read the ALE pin and save the address then provide the proper Memory or IO Read/Write.

Disadvantages: The speed, the processor is only running at about 0.3 MHz the best I could calculate. But on the flip side the drive read writes are very fast because the memory is virtual on raspberry pi.

Not all 8088/8086 Processors will work. The power is connected to the 3.3v pin on the PI. Most NEC V20/V30's will operate 3V - 7V so this is not problem.

I have written a c library that helps with interfacing the 8088 PCB. I have also begun to develop a GUI window that emulates CGA/VGA graphics. I tested this with a fresh install of Raspberry PI os and it ran just fine.

Prerequisites

To compile you need gcc some build tools, SDL2 and nasm

sudo apt-get install gcc build-essential libsdl2-dev nasm

If you don't have WiringPi installed here is how to get it. This will work on Ubuntu or Raspbian

git clone https://github.com/WiringPi/WiringPi
cd WiringPi
./build

Build

cd src
make

Run

The program has to be run as root in order for it to access the gpios.

For the V30 CPU 8086 run

sudo ./pi86

For the V20 CPU 8088 run

sudo ./pi88

*** This is experimental use at your own risk.

This current build runs very stable. I have left it running for seveal hours and came back and it was still running just fine. I encourage you to download the source code to the projects and give them a try and make modification.

About

Raspberry PI 8088 "hat"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 63.2%
  • C++ 19.2%
  • Assembly 17.2%
  • Makefile 0.4%