|
|
Line 1: |
Line 1: |
| For nesasm.
| | See: |
| <pre>
| | * [[CPU registers]] |
| ; -- registers.h -- ;
| | * [[PPU registers]] |
| ; PPU
| | * [[APU registers]] |
| .org 0x2000
| |
| PPU_CTRL1 .ds 1
| |
| PPU_CTRL2 .ds 1
| |
| PPU_STATUS .ds 1
| |
| SPR_ADDR .ds 1
| |
| SPR_IO .ds 1
| |
| VRAM_ADDR1 .ds 1
| |
| VRAM_ADDR2 .ds 1
| |
| VRAM_IO .ds 1
| |
| ; pAPU
| |
| .org 0x4000
| |
| SND_PULSE1_CTRL .ds 1
| |
| SND_PULSE1_RAMP_CTRL .ds 1
| |
| SND_PULSE1_FT .ds 1
| |
| SND_PULSE1_CT .ds 1
| |
| SND_PULSE2_CTRL .ds 1
| |
| SND_PULSE2_RAMP_CTRL .ds 1
| |
| SND_PULSE2_FT .ds 1
| |
| SND_PULSE2_CT .ds 1
| |
| SND_TRI_CTRL1 .ds 1
| |
| SND_TRI_CTRL2 .ds 1
| |
| SND_TRI_FREQ1 .ds 1
| |
| SND_TRI_FREQ2 .ds 1
| |
| SND_NOISE_CTRL1 .ds 1
| |
| SND_NOISE_CTRL2 .ds 1
| |
| SND_NOISE_FREQ1 .ds 1
| |
| SND_NOISE_FREQ2 .ds 1
| |
| SND_DMC_CTRL .ds 1
| |
| SND_DMC_DA .ds 1
| |
| SND_DMC_ADDR .ds 1
| |
| SND_DMC_DL .ds 1
| |
| SPR_DMA .ds 1
| |
| SND_CLOCK .ds 1
| |
| JOYPAD1 .ds 1
| |
| JOYPAD2 .ds 1
| |
| ; UNROM
| |
| .org 0x8000
| |
| UNROM .ds 1
| |
| ; CNROM
| |
| .org 0x8000
| |
| CNROM .ds 1
| |
| ; MMC1
| |
| .org 0x8000
| |
| MMC1_CTRL .ds 1
| |
| .org 0xA000
| |
| MMC1_VROM_LOW .ds 1
| |
| .org 0xC000
| |
| MMC1_VROM_HIGH .ds 1
| |
| .org 0xE000
| |
| MMC1_PRG .ds 1
| |
| ; MMC3
| |
| .org 0x8000
| |
| MMC3_CMD .ds 1
| |
| MMC3_PAGE .ds 1
| |
| .org 0xA000
| |
| MMC3_MIRR .ds 1
| |
| MMC3_SRAM .ds 1
| |
| .org 0xC000
| |
| MMC3_CLOCK .ds 1
| |
| MMC3_CLOCK_LATCH .ds 1
| |
| .org 0xE000
| |
| MMC3_CLOCK_OFF .ds 1
| |
| MMC3_CLOCK_ON .ds 1
| |
| </pre>
| |