Standardized all 18 top-level projects to canonical audit comment format: ; CPU:$XXXX PRG:XXXX AA BB Changes per project: - CIRCUS: fixed 4,427 comments (CPU:XXXX -> CPU:$XXXX) - Excitebike (JU): fixed 48 double-semicolon comments (; state $XX ; CPU:...) - 9 projects received canonical comments via new audit_comment_tool.py: Balloon Fight, Baseball, Bomberman, Burger Time, Clu Clu Land, Defender 2, Donkey Kong 3, Donkey Kong Jr., Tennis New tool: _tools/audit_comment_tool.py - Uses nesdis.py tracer as ground truth for instruction bytes/addresses - Parses source while tracking PRG offset, emits canonical comments - Handles .byte/.word/.dword directives, instruction comments (short format) - Carves PRG from rom.nes when prg.bin missing Documentation updates: - TODO.md: Updated current state, item 3 (tool built), repo conventions, tool list - AGENTS.md: Added audit_comment_tool.py to _tools/, updated audit convention Verification: verify_pass1.py reports all 18 projects byte-identical with 'canoni' format.
63 lines
1.1 KiB
PHP
63 lines
1.1 KiB
PHP
;------------------------------------------------------------
|
|
; NES hardware registers
|
|
;------------------------------------------------------------
|
|
|
|
PPUCTRL = $2000
|
|
PPUMASK = $2001
|
|
PPUSTATUS = $2002
|
|
OAMADDR = $2003
|
|
OAMDATA = $2004
|
|
PPUSCROLL = $2005
|
|
PPUADDR = $2006
|
|
PPUDATA = $2007
|
|
|
|
SQ1_VOL = $4000
|
|
SQ1_SWEEP = $4001
|
|
SQ1_LO = $4002
|
|
SQ1_HI = $4003
|
|
|
|
SQ2_VOL = $4004
|
|
SQ2_SWEEP = $4005
|
|
SQ2_LO = $4006
|
|
SQ2_HI = $4007
|
|
|
|
TRI_LINEAR = $4008
|
|
TRI_LO = $400A
|
|
TRI_HI = $400B
|
|
|
|
NOISE_VOL = $400C
|
|
NOISE_LO = $400E
|
|
NOISE_HI = $400F
|
|
|
|
OAMDMA = $4014
|
|
APUSTATUS = $4015
|
|
JOY1 = $4016
|
|
JOY2 = $4017
|
|
|
|
|
|
APUPC1BASE = $4000
|
|
APUPC1SWEEP = $4001
|
|
APUPC1TLOW = $4002
|
|
APUPC1THIGH = $4003
|
|
|
|
APUPC2BASE = $4004
|
|
APUPC2SWEEP = $4005
|
|
APUPC2LOW = $4006
|
|
APUPC2HIGH = $4007
|
|
|
|
APUTRIBASE = $4008
|
|
APUTRILOW = $400A
|
|
APUTRIHIGH = $400B
|
|
|
|
APUNOISEBASE = $400C
|
|
APUNOISELOOP = $400E
|
|
APUNOISELENGTH = $400F
|
|
|
|
APUDMABASE = $4010
|
|
APUDMALOAD = $4011
|
|
APUDMAADDR = $4012
|
|
APUDMALEN = $4013
|
|
|
|
APUCTRL = $4015
|
|
APUFRAMECNT = $4017
|