Skip to content

NES · Assembly · 6502

NES assembly

Learn 6502 assembly by building games

CPU
Ricoh 2A03
Speed
1.79 MHz
RAM
2 KB
Graphics
PPU
Sound
APU

Before you begin

You'll need an assembler and an emulator. Both are free and take five minutes to install.

Set up your tools →

Games

Each game teaches new skills while building something you'll want to play. Start with Game 1 and work through in order — each builds on what came before.

0
Meet the Machine screenshot
Meet the Machine
The assembly on-ramp — meet the 6502 and the NES one idea at a time, before you build a thing.
Registers and memoryThe PPU window and palettesTest-and-branch control flowThe NMI frame heartbeat
18 / 18 units
1
Dash screenshot
Dash
Fast-paced side-scrolling runner with obstacle avoidance
PPU graphicsSprite managementNMI handlingController input
16 / 128 units
2
Soon
Crate Escape
Single-screen platformer with jump physics
GravityJump physicsPlatform collisionPlayer animation
0 / 128 units
3
Soon
Fracture Point
Breakout with tile manipulation
Ball physicsTile updatesPaddle controlPower-ups
0 / 128 units
4
Soon
Pellet Panic
Pac-Man style maze game with ghost AI
Tile-based mazeGhost AIPower-upsScreen wrapping
0 / 128 units
5
Soon
Crypt Crawler
Flip-screen dungeon exploration
Room structuresPersistent stateKey/door mechanicsChase AI
0 / 128 units
6
Soon
Fangs for the Memory
Snake game with ring buffer data structure
Ring buffersGrid movementSelf-collisionGrowth mechanics
0 / 128 units
7
Soon
Gridlock
Tetris-style falling blocks with rotation
Piece rotationGrid collisionLine clearingGhost piece
0 / 128 units
8
Soon
Pixel Plains
Side-scrolling platformer with hardware scrolling
Hardware scrollingScroll registersCamera systemsLevel streaming
0 / 128 units
9
Soon
Ion Trail
Gradius-style side-scrolling shooter
Scrolling shooterPower-upsEnemy patternsTerrain collision
0 / 256 units
10
Soon
Arena Assault
Multi-directional arena combat with wave survival
Arena combatWave survivalWeapon systemsScore attack
0 / 256 units
11
Soon
Thunder Run
Vertical shooter with MMC1 mapper
Vertical scrollingFormation patternsMMC1 mapperExtended CHR
0 / 256 units
12
Soon
Iron Assault
Contra-style run and gun with co-op
Multi-directional shootingTwo-player co-opBoss battlesWeapon upgrades
0 / 256 units
13
Soon
Pavement Justice
Beat-'em-up with Y-depth sorting
Y-depth sortingMelee combatCombo systemsMultiple enemies
0 / 256 units
14
Soon
Tarmac Terror
Pseudo-3D racing with split-screen
Pseudo-3D roadSprite scalingSplit-screenRoad curves
0 / 256 units
15
Soon
Echoes of Eponium
Metroidvania with ability-gating
Connected worldAbility-gatingSave systemMMC3 mapper
0 / 512 units
16
Soon
Requiem for a Mapper
Capstone action-adventure epic
All techniquesIRQ effectsBattery backupProfessional polish
0 / 512 units

What you'll master

By the time you've built all the games, you'll have deep knowledge of NES hardware and 6502 assembly.

PPU graphics

Master the Picture Processing Unit: tiles, sprites, nametables, and the scrolling techniques that defined a generation.

APU sound

Program the Audio Processing Unit's five channels: two pulse waves, triangle, noise, and DMC for authentic 8-bit music.

6502 assembly

The instruction set that powered the console revolution. Zero page, indexed addressing, and cycle-counted code.

Mapper magic

Understand cartridge mappers and how they expanded the NES beyond its limits. Bank switching and advanced techniques.

Memory map

The NES has a compact but powerful memory layout — just 2 KB of RAM, with memory-mapped I/O for the PPU and APU.

$0000–$07FFRAM (2 KB, mirrored to $1FFF)
$2000–$2007PPU registers
$4000–$4017APU & I/O registers
$8000–$FFFFPRG-ROM (cartridge code)

Ready to start?

Game 1 starts with the PPU — building a complete NES cartridge from scratch. By the end of Unit 1, you'll have a sprite on screen drawn by real NES hardware.

Start Game 1: Dash →