CDL re-trace: 1942 (JU) 46.6%, Galaga (U) 32.3% (Pass 2/3 complete)
Pass 3 _wip: semantic ZP aliases for Sqoon (U) (FrameCounter, PpuCtrlShadow, NmiFrameFlag) and Elevator Action (U) (PpuCtrlShadow, NmiSaveA/X/Y) Pass 3 Slalom (U): semantic ZP aliases (PpuCtrlShadow, PpuMaskShadow) Pass 3 Kung Fu (U): semantic ZP alias (PpuCtrlShadow) Pass 3 Othello (U): semantic ZP alias (PpuCtrlShadow) Pass 3 1942 (JU): semantic ZP alias (PpuCtrlShadow) Pass 3 Galaga (U): semantic ZP aliases (PpuCtrlShadow, PpuMaskShadow) Docs: add power-on flow + data-table inventory to READMEs of 13 promoted NROM projects Pass 3 Elevator Action (U): add NmiFrameFlag alias Pass 3 Elevator Action (U): full ZP naming (23 aliases) + 25 named data tables, 59.4% coverage Pass 1/2/3 re-trace: recover unreached code in 7 NROM projects (Sqoon 56.4%, Elevator Action 59.3%, Kung Fu 52.1%, 1942 52.1%) Pass 3 Sqoon (U): full ZP naming (22 aliases) + 17 named data tables Pass 3 Kung Fu (U): full ZP naming (21 aliases) + 13 named data tables Pass 3 Othello (U): full ZP naming (18 aliases) + 27 named data tables Pass 3 1942 (JU): full ZP naming (14 aliases) + 19 named data tables Pass 3 Galaga (U): full ZP naming (15 aliases) + 14 named data tables Pass 3 Slalom (U): full ZP naming (16 aliases) + 16 named data tables Pass 2/3: re-apply naming to Slalom (U), Othello (U), Galaga (U) after re-seed Pass 1/2/3 re-trace: recover unreached code in 6 more promoted NROM projects Pass 3 Stack-Up (JU): full ZP naming (15 aliases) + 12 named data tables Pass 3 Tag Team Wrestling (U): full ZP naming (20 aliases) + 11 named data tables Pass 3 Kung Fu (U) (a1): full ZP naming (20 aliases) + 12 named data tables Pass 3 Magmax (U): full ZP naming (18 aliases) + 6 named data tables Pass 3 Soccer (JU): full ZP naming (18 aliases) + 9 named data tables Pass 3 Ms Pac-Man (Namco) (U): full ZP naming (18 aliases) + 8 named data tables Docs: refresh coverage numbers and data-table inventories for 13 promoted NROM projects
This commit is contained in:
1 parent
0a49ee6da7
commit
6740550ac0
55 files changed
+160669
-46941
No files matched your search
@@ -2,66 +2,70 @@
|
||||
|
||||
## Status
|
||||
|
||||
**Pass 3.** All address-derived `Label_XXXX` definitions replaced;
|
||||
every `jsr`/`jmp` operand symbolic; hardware-register operands resolved
|
||||
via `apply_symbols.py` (0 residue); audit comments aligned; `make`
|
||||
stays byte-identical.
|
||||
|
||||
`make` assembles `header.s`, `prg.s`, `chr.s`, links them with `ld65` and compares the
|
||||
result against `rom.nes`:
|
||||
|
||||
```
|
||||
Byte-identical ROM verified.
|
||||
```
|
||||
**Pass 3 complete; promoted.** `prg.s` is a traced disassembly with all
|
||||
address-derived labels replaced, all `jsr`/`jmp` operands symbolic, hardware
|
||||
registers named via `symbols.inc`, and `apply_symbols.py` reporting 0 residue.
|
||||
Code coverage: 17,170 / 32,768 bytes (52.4%).
|
||||
`make` assembles and verifies byte-identical to `rom.nes`.
|
||||
|
||||
## ROM
|
||||
|
||||
| Property | Value |
|
||||
|----------|-------|
|
||||
| Format | iNES |
|
||||
| Mapper | 0 |
|
||||
| Board | NROM-256 |
|
||||
| Mapper | 0 (NROM) |
|
||||
| PRG | 32 KB |
|
||||
| CHR | 8 KB |
|
||||
| Mirroring | Horizontal |
|
||||
| Four-screen VRAM | no |
|
||||
| Battery | no |
|
||||
| PRG | 32 KB (2 x 16 KB), mapped at CPU $8000-$FFFF |
|
||||
| CHR | 8 KB (1 x 8 KB) |
|
||||
| Trainer | none |
|
||||
| Footer | none |
|
||||
| NMI vector | $FFCD |
|
||||
| RESET vector | $FD43 |
|
||||
| IRQ vector | $FD43 |
|
||||
| ROM file | `Tag Team Wrestling (U).nes` |
|
||||
| SHA-256 | `a2df0fc3948a91ef637f804fb793f92ca0a3e510c6ae72d9f9c4738b6194aa5a` |
|
||||
|
||||
### Header notes
|
||||
## Power-on flow
|
||||
|
||||
- none
|
||||
RESET enters at `$FD43`:
|
||||
|
||||
## Open work
|
||||
sei ; CPU:$FD43 PRG:7D43 78
|
||||
cld ; CPU:$FD44 PRG:7D44 D8
|
||||
lda #$00 ; CPU:$FD45 PRG:7D45 A9 00
|
||||
sta PPUCTRL ; CPU:$FD47 PRG:7D47 8D 00 20
|
||||
sta PPUMASK ; CPU:$FD4A PRG:7D4A 8D 01 20
|
||||
lda PPUSTATUS ; CPU:$FD4D PRG:7D4D AD 02 20
|
||||
bpl Reset_OnNonnegative ; CPU:$FD50 PRG:7D50 10 FB
|
||||
lda PPUSTATUS ; CPU:$FD52 PRG:7D52 AD 02 20
|
||||
bpl Reset_OnNonnegative2 ; CPU:$FD55 PRG:7D55 10 FB
|
||||
lda #$00 ; CPU:$FD57 PRG:7D57 A9 00
|
||||
sta Zp0F ; CPU:$FD59 PRG:7D59 85 0F
|
||||
sta Zp10 ; CPU:$FD5B PRG:7D5B 85 10
|
||||
|
||||
- **Pass 1** - run `nesdis.py` over `prg.bin` to produce the code/data
|
||||
split. The tracer reads the vectors from the last six bytes of the PRG
|
||||
image, so the split seeds correctly.
|
||||
- **Pass 1** must emit the canonical audit comment
|
||||
`; CPU:$C123 PRG:0123 AD 21 03` at column 35 for every instruction.
|
||||
- **Pass 2** - replace the address-derived `Label_XXXX` names and the raw
|
||||
`$XXXX` call operands.
|
||||
- **Pass 3** - semantic zero-page aliases (applied only at the sites where
|
||||
their role is proven) and named data tables.
|
||||
- **Promotion** to `NROM/<name>/` once Pass 3 is done, as `git mv`.
|
||||
NMI handler at `$FFCD`:
|
||||
|
||||
## Files
|
||||
pha ; CPU:$FFCD PRG:7FCD 48
|
||||
txa ; CPU:$FFCE PRG:7FCE 8A
|
||||
pha ; CPU:$FFCF PRG:7FCF 48
|
||||
tya ; CPU:$FFD0 PRG:7FD0 98
|
||||
pha ; CPU:$FFD1 PRG:7FD1 48
|
||||
lda #$00 ; CPU:$FFD2 PRG:7FD2 A9 00
|
||||
sta OAMADDR ; CPU:$FFD4 PRG:7FD4 8D 03 20
|
||||
lda #$07 ; CPU:$FFD7 PRG:7FD7 A9 07
|
||||
|
||||
| File | Purpose |
|
||||
|------|---------|
|
||||
| `prg.s` | Pass 0 PRG include (replaced by the Pass 1 disassembly) |
|
||||
| `header.s` | iNES header include |
|
||||
| `chr.s` | CHR include |
|
||||
| `prg.bin` | 32768 bytes (32 KB) PRG image |
|
||||
| `chr.bin` | 8192 bytes (8 KB) CHR image |
|
||||
| `rom.nes` | byte-identical copy of the original ROM |
|
||||
| `linker.cfg` | HEADER / PRG / CHR memory areas |
|
||||
| `symbols.inc` | NES hardware register names |
|
||||
| `locals.inc` | zero-page aliases (empty at Pass 0) |
|
||||
| `Makefile` | build and byte-identity check |
|
||||
## Data-table inventory (Pass 3)
|
||||
|
||||
- `$8049-$8786` (1854 bytes) - `RingEntrancePointerTable`
|
||||
- `$8792-$9BEF` (5214 bytes) - `UnreachedRomData`
|
||||
- `$9DC5-$9DCB` (7 bytes) - `WrestlerNameLengthTable`
|
||||
- `$9F44-$9F4B` (8 bytes) - `PpuBitMaskTable`
|
||||
- `$A281-$A302` (130 bytes) - `UnreachedCodeData`
|
||||
- `$A30A-$A35B` (82 bytes) - `WrestlerHandlerPointerTable`
|
||||
- `$A377-$A9F0` (1658 bytes) - `WrestlerMovementData`
|
||||
- `$A9FA-$AA1C` (35 bytes) - `UnreachedRomData2`
|
||||
- `$AB05-$AC7E` (378 bytes) - `LevelGraphicData`
|
||||
- `$ACC6-$AD0B` (70 bytes) - `LevelTilePatternData`
|
||||
- `$AD3E-$AD9C` (95 bytes) - `LevelObjectPlacementData`
|
||||
- `$AE01-$AF9F` (415 bytes) - `WrestlerParameterTable`
|
||||
|
||||
## Build
|
||||
|
||||
```
|
||||
Byte-identical ROM verified.
|
||||
```
|
||||
Reference in new issue
Block a user