2 ; NES definitions. By Groepaz/Hitmem.
6 ;; FIXME: optimize zeropage usage
40 PPU_VRAM_ADDR1 = $2005
41 PPU_VRAM_ADDR2 = $2006
46 APU_PULSE1CTRL = $4000 ; Pulse #1 Control Register (W)
47 APU_PULSE1RAMP = $4001 ; Pulse #1 Ramp Control Register (W)
48 APU_PULSE1FTUNE = $4002 ; Pulse #1 Fine Tune (FT) Register (W)
49 APU_PULSE1CTUNE = $4003 ; Pulse #1 Coarse Tune (CT) Register (W)
50 APU_PULSE2CTRL = $4004 ; Pulse #2 Control Register (W)
51 APU_PULSE2RAMP = $4005 ; Pulse #2 Ramp Control Register (W)
52 APU_PULSE2FTUNE = $4006 ; Pulse #2 Fine Tune Register (W)
53 APU_PULSE2STUNE = $4007 ; Pulse #2 Coarse Tune Register (W)
54 APU_TRICTRL1 = $4008 ; Triangle Control Register #1 (W)
55 APU_TRICTRL2 = $4009 ; Triangle Control Register #2 (?)
56 APU_TRIFREQ1 = $400A ; Triangle Frequency Register #1 (W)
57 APU_TRIFREQ2 = $400B ; Triangle Frequency Register #2 (W)
58 APU_NOISECTRL = $400C ; Noise Control Register #1 (W)
59 ;;APU_ = $400D ; Unused (???)
60 APU_NOISEFREQ1 = $400E ; Noise Frequency Register #1 (W)
61 APU_NOISEFREQ2 = $400F ; Noise Frequency Register #2 (W)
62 APU_MODCTRL = $4010 ; Delta Modulation Control Register (W)
63 APU_MODDA = $4011 ; Delta Modulation D/A Register (W)
64 APU_MODADDR = $4012 ; Delta Modulation Address Register (W)
65 APU_MODLEN = $4013 ; Delta Modulation Data Length Register (W)
66 APU_SPR_DMA = $4014 ; Sprite DMA Register (W)
67 APU_CHANCTRL = $4015 ; Sound/Vertical Clock Signal Register (R)
68 APU_PAD1 = $4016 ; Joypad #1 (RW)
69 APU_PAD2 = $4017 ; Joypad #2/SOFTCLK (RW)