Skip to content

A lightweight, cycle-accurate emulator for the MOS 6502 CPU, built from scratch in C++

License

Notifications You must be signed in to change notification settings

LordofGhost/6502-Emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

6502 Emulator

This project is about creating an Emulator for my 6502-Computer.

Roadmap

  • Create basic structure and interfaces
  • Load data in ROM
  • Basic CPU & RAM functionality
  • Complete CPU functionality
  • Handle IO
  • Interactive CLI

Story

6502 This is a replica of the BE65 from Ben Eater

Why I built it?

  • I have always wondered what exactly happens in a computer, when I started writing my first programs with java it didn't really answer my questions but rather raised more questions. Then one day a video of Ben Eater was suggested to me and I was immediately enthusiastic about the idea of building a computer myself.

Building

  • So that I don't lose track of the cables, I opened the schematics on my Ipad and marked each completed connection in green.
  • Thanks to Ben Eater's videos, I was able to understand what the individual components do during construction.

Problems

  • Get all the parts you need for the computer without spending a to much money

Functions

  • reading and display inputs of a PS2 Keyboard
  • interact with a other computer by RS232

Information about the computer

Main components

  • The processor is the 6502, while the 6522 is used for I/O. The 28c256 is used as Rom and the 62256 as Ram.

Memory layout

$0000 - $3fff RAM

$6000 - $600f I/O

$8000 - $ffff ROM

Conclusion

  • It was a very instructive project in terms of my understanding of computers and electronics in general.

Future plans

  • create my own little os for the computer
  • self-built gpu for the computer to be able to use it on a monitor

Credits

Originally, I was inspired by Ben Eater to build my version of 6502 computer.

About

A lightweight, cycle-accurate emulator for the MOS 6502 CPU, built from scratch in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published