Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vulcalien/6502-emulator
6502 processor emulator
https://github.com/vulcalien/6502-emulator
6502 cpu-emulator emulator
Last synced: 21 days ago
JSON representation
6502 processor emulator
- Host: GitHub
- URL: https://github.com/vulcalien/6502-emulator
- Owner: Vulcalien
- License: gpl-3.0
- Created: 2021-06-07T19:58:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T20:21:55.000Z (10 months ago)
- Last Synced: 2024-10-16T12:28:48.113Z (2 months ago)
- Topics: 6502, cpu-emulator, emulator
- Language: C
- Homepage:
- Size: 70.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# 6502 Emulator
Some time ago, I decided to create a CPU emulator in order to better
understand how these work.This emulator is built as a **C library**.
## Using the library
1. Include the emulator header
```C
#include "6502_emulator.h"
```2. Initialize the library
```C
cpu_library_init();
```3. Create and set the CPU's IO functions
```C
cpu_read_byte = read_byte;
cpu_write_byte = write_byte;
```4. Reset the CPU
```C
cpu_reset();
```5. Make the CPU run
```C
while(1) {
cpu_clock();
}
```## Resources
- [This website](http://web.archive.org/web/20210803072420/http://www.obelisk.me.uk/6502/)
contains information about architecture, registers, instructions
and addressing modes.
- I also used some of the information present in
[this book](http://archive.6502.org/books/mcs6500_family_hardware_manual.pdf)
to make sure that the emulator behaves correctly.