i6502/README.md

60 lines
2.2 KiB
Markdown
Raw Permalink Normal View History

2014-08-16 09:43:53 +00:00
# i6502 - A 6502 Emulator
2014-08-07 07:26:03 +00:00
2014-08-12 19:50:52 +00:00
[![Build Status](https://travis-ci.org/ariejan/i6502.svg?branch=master)](https://travis-ci.org/ariejan/i6502)
2014-08-29 12:22:39 +00:00
[![Go Docs](http://b.repl.ca/v1/Go-Docs-blue.png)](http://godoc.org/github.com/ariejan/i6502)
2014-08-12 19:50:52 +00:00
2014-08-16 09:43:53 +00:00
This is an emulator of the i6502 hardward project I'm doing.
2014-08-07 07:26:03 +00:00
2014-08-17 14:01:00 +00:00
It's written in Golang and comes fully tested.
[Website](http://ariejan.github.io/i6502/) • [Documentation](http://godoc.org/github.com/ariejan/i6502)
2014-08-07 07:26:03 +00:00
2014-08-16 09:43:53 +00:00
## Background
2014-08-07 07:26:03 +00:00
2014-08-16 09:43:53 +00:00
The MOS 6502 Microprocessor has been around sinc 1975 and is used in many popular systems, like
2014-08-18 14:13:51 +00:00
the Apple II, Atari 2600, Commodore 64 and the Nintendo Entertainment System (NES).
2014-08-16 09:43:53 +00:00
It features an 8-bit accumulator and ALU, two 8-bit index registers and a 16-bit memory bus, allowing the processor to access up to 64kB of memory.
I/O is mapped to memory, meaning that both RAM, ROM and I/O are addressed over the same 16-bit address bus.
Because of it's simple and elegant design and the plethora of information available about this microprocessor, the 6502 is very useful for learning and hobby projects.
The 65C02 is a updated version of the 6502. It includes some bug fixes and new instructions. The goal is for i6502 to fully support the 65C02 as well.
2014-08-07 07:26:03 +00:00
## What's included in the emulator?
2014-08-16 09:43:53 +00:00
* 6502 Microprocessor, fully tested
* 16-bit address bus, with attachable memory
* RAM Memory
2014-08-19 20:19:39 +00:00
* 6551 Asynchronous Communications Interface Adapter (ACIA)
2014-08-07 07:26:03 +00:00
## What's not (yet) included?
2014-08-16 09:43:53 +00:00
* Proper Golang packaging and documentation
2014-08-07 07:26:03 +00:00
* 65C02 support
2014-08-16 09:43:53 +00:00
* Roms
2014-08-19 20:19:39 +00:00
* I/O (VIA 6522)
2014-08-07 07:26:03 +00:00
* Batteries
2014-08-16 09:43:53 +00:00
## Getting started
Although this package contains everything you need, there is not single 'emulator' program yet. The CPU, address bus and RAM components are all available to you, but documentation is still lacking.
For now, you can checkout the project, and run the tests.
go get github.com/ariejan/i6502
cd $GOPATH/src/github.com/ariejan/i6502
go get -t
go test
2014-08-07 07:26:03 +00:00
## License
This project is licensed under the MIT, see [LICENSE](https://github.com/ariejan/i6502/blob/master/LICENSE) for full details.
## Contributors
* Ariejan de Vroom (ariejan@ariejan.net)
2014-08-16 09:43:53 +00:00
2014-08-17 14:01:00 +00:00
Special thanks to the awesome folk at [http://forum.6502.org](http://forum.6502.org) for their support and shared knowledge.