A modding project built on top of the Super Mario Bros. disassembly by doppelganger.
- asm6f — place the
asm6fbinary in the project root - A dumped Super Mario Bros. NES ROM (
smb.nes)
-
Place your
smb.nesROM in the project root. -
Extract the CHR (character/graphics) ROM data:
make extract_character
This produces
mario.chrfrom the original ROM.
make assembleThe assembled ROM is written to out/smb.nes. Without any modifications to the source, this produces a byte-for-byte identical ROM to the original.
The build process strips the .index and .mem directives from SMBDIS.ASM before assembling. These are x816 (65816 assembler) directives that set 8-bit mode, which is a no-op on the NES's 6502 CPU and unsupported by asm6f.
| File | Description |
|---|---|
SMBDIS.ASM |
Original SMB disassembly (unmodified) |
build.asm |
iNES 2.0 header and ROM assembly wrapper |
mario.chr |
CHR ROM data (extracted from original ROM) |
Makefile |
Build commands |