模擬器 - Nintendo NES - Register



參考資料:
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

8 Bits8 BitsDescription
AAccumulator
XX Rrgister
YY Register
SPStack Pointer
SRStatus Register
PCProgram Counter
$2000PPUCTRL
$2001PPUMASK
$2002PPUSTATUS
$2003OAMADDR
$2004OAMDATA
$2005PPUSCROLL
$2006PPUADDR
$2007PPUDATA
$4000SQ1_VOL, Duty and volume for square wave 1
$4001SQ1_SWEEP, Sweep control register for square wave 1
$4002SQ1_LO, Low byte of period for square wave 1
$4003SQ1_HI, High byte of period and length counter value for square wave 1
$4004SQ2_VOL, Duty and volume for square wave 2
$4005SQ2_SWEEP, Sweep control register for square wave 2
$4006SQ2_LO, Low byte of period for square wave 2
$4007SQ2_HI, High byte of period and length counter value for square wave 2
$4008TRI_LINEAR, Triangle wave linear counter
$4009Unused, but is eventually accessed in memory-clearing loops
$400ATRI_LO, Low byte of period for triangle wave
$400BTRI_HI, High byte of period and length counter value for triangle wave
$400CNOISE_VOL, Volume for noise generator
$400DUnused, but is eventually accessed in memory-clearing loops
$400ENOISE_LO, Period and waveform shape for noise generator
$400FNOISE_HI, Length counter value for noise generator
$4010DMC_FREQ, Play mode and frequency for DMC samples
$4011DMC_RAW, 7-bit DAC
$4012DMC_START, Start of DMC waveform is at address $C000 + $40*$xx
$4013DMC_LEN, Length of DMC waveform is $10*$xx + 1 bytes (128*$xx + 8 samples)
$4014OAMDMA, Writing $xx copies 256 bytes by reading from $xx00-$xxFF and writing to OAMDATA ($2004)
$4015SND_CHN, Sound channels enable and status
$4016JOY1, Joystick 1 data (R) and joystick strobe (W)
$4017JOY2, Joystick 2 data (R) and frame counter control (W)
$4018-$401FAPU and I/O functionality that is normally disabled. See CPU Test Mode.

Status

Bit76543210
(S) Sign flag (V) Overflow flag (B) Software interrupt flag (D) BCD(I)Interrupt enable/disable flag (Z) Zero flag (C) Carry flag