6502 Assembly Simulator
This page contains an interactive 6502 assembly language simulator. You can write, assemble, and run 6502 assembly code in your browser.
6502 Assembly Simulator
Below is an interactive 6502 assembler and simulator. You can write 6502 assembly code, assemble it, and run it in the virtual machine.
How to Use
- Write Assembly Code: Type your 6502 assembly code in the text area
- Assemble: Click “Assemble” to convert your code to machine code
- Run: Click “Run” to execute the program
- Debug: Enable the debugger to step through code instruction by instruction
- Monitor: View memory contents in real-time
Example Code
Try this simple program that draws a colored pixel:
LDA #$05 ; Load green color
STA $200 ; Store to screen memory
BRK ; Break execution
Memory Map
- $0000-$00FF: Zero page (fast access)
- $0100-$01FF: Stack
- $0200-$05FF: Screen memory (160x160 pixels)
- $FE: Random byte generator
- $FF: Last key pressed
The simulator provides a complete 6502 environment for learning assembly programming and retro game development.
This post is licensed under CC BY 4.0 by the author.