Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 1.15 KB

README.md

File metadata and controls

28 lines (16 loc) · 1.15 KB

NMOS 6502 Emulator built in Python

Introduction

This is a semi-cycle accurate 6502 CPU emulator. It implements all known opcodes only. Decimal mode arithmetics are also implemented. The C flag is valid in decimal mode while N, V, Z is not valid as per the original 6502 implementation.

This application also include a web-based debugger to inspect the internal state of the CPU and memory. It is a Flask web app.

6502 Web Debugger

Web Debugger Shortcuts

Enter - Run Code Continuously

Space - Step one instruction

T - Skip N operations (without displaying it to the debugger. This makes it run at full speed)

R - Reset CPU (Does not reset memory)

S - Stop Continuous Run

References

One Lone Coder's excellent tutorial at OLC NES

Bruce Clark's decimal mode write up at 6502.org

Opcodes Reference at 6502.org

Instructions Reference at obelisk.me.uk