參考資料:
http://nesdev.com/6502.txt
http://wiki.nesdev.com/w/index.php/Nesdev_Wiki
http://www.6502.org/tutorials/6502opcodes.html
https://www.masswerk.at/6502/6502_instruction_set.html
Range | Size | Device |
---|---|---|
$0000-$07FF | $0800 | 2KB internal RAM(zero page is $0000-$00FF) |
$0800-$0FFF | $0800 | Mirrors of $0000-$07FF |
$1000-$17FF | $0800 | Mirrors of $0000-$07FF |
$1800-$1FFF | $0800 | Mirrors of $0000-$07FF |
$2000-$2007 | $0008 | NES PPU registers |
$2008-$3FFF | $1FF8 | Mirrors of $2000-2007 (repeats every 8 bytes) |
$4000-$4017 | $0018 | NES APU and I/O registers |
$4018-$401F | $0008 | APU and I/O functionality that is normally disabled |
$4020-$FFFF | $BFE0 | Cartridge space: PRG ROM, PRG RAM, and mapper registers |
$6000-$7FFF | $1FFF | Battery Backed Save or Work RAM |
$8000-$FFFF | $7FFF | Usual ROM, commonly with Mapper Registers |
$FFFA-$FFFB | $0002 | NMI vector |
$FFFC-$FFFD | $0002 | Reset vector |
$FFFE-$FFFF | $0002 | IRQ/BRK vector |