https://github.com/kcreate/mos6502
MOS 6502 Emulator
https://github.com/kcreate/mos6502
6502 6502-assembly assembly emulator microcontroller
Last synced: 27 days ago
JSON representation
MOS 6502 Emulator
- Host: GitHub
- URL: https://github.com/kcreate/mos6502
- Owner: KCreate
- License: mit
- Created: 2018-02-26T07:41:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-08T01:40:11.000Z (about 5 years ago)
- Last Synced: 2025-05-09T18:56:55.687Z (30 days ago)
- Topics: 6502, 6502-assembly, assembly, emulator, microcontroller
- Language: C++
- Homepage:
- Size: 340 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

# MOS-6502 Emulator
This is a complete emulator of the original MOS Technology 6502 microcontroller from 1975.
It is written in C++.The emulator works by providing a shared memory bus, to which one can connect devices.
Each device is allocated an address range, in which it can provide its functionality.
This allows the program to change audio-output and draw graphics by simply writing a value to a specific address.Below you can see the virtual monitor displaying a pong game.
[The game is implemented completely in the
6502-Assembly language.](https://github.com/KCreate/mos6502/blob/master/examples/c/pong.asm)
# Custom modifications
Since the original 6502 didn't use all available opcodes, a custom one was added.
You can see a list of unused 6502 opcodes [here](http://www.oxyron.de/html/opcodes02.html).Instead of halting the CPU, it now waits until the next interrupt happens.
- `0x02 - WAI` Same behaviour as on the WDC 65C02.
# Contributors
- Leonard Schütz, Lead Developer [@KCreate](https://github.com/KCreate)
# License
[MIT License](LICENSE.md)