Skip to content

aelobdog/cuppu86

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cuppu86

Cuppu

What is Cuppu ?

Cuppu86 is an 8086 emulator backend written in C89.

About

This project was started in order to learn more about how a simple processor like the 8086 works. The project is designed to work as a "library" in the sense that it provides all the back-end functionality of a "cpu". Third party clients can be designed to work with this code by downloading the files in this repo and then "including" the [cpu.h] header file, and then compiling all the c files provided alongside their code.

The emulator supports 98% of the opcode set. Instructions involving interrupts are left unimplemented.

Demo

Using a highly experimental client that samarthkm wrote and I modified, here's a demo of the emulator calculating the factorial of the number 5.

Cuppu86 Demo

(here register ax is calculating the factorial. 0x78 is 120 in decimal (5!))

License notice :

Cuppu86 is distributed under the GNU GPLv3. Refer to LICENSE for more information

Copyright (C) 2021 Ashwin Godbole, Samarth Krishna Murthy

About

Cuppu86 is an 8086 emulator backend written in C.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages