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
+55
-47
@@ -2,66 +2,74 @@
|
||||
|
||||
## Status
|
||||
|
||||
**Pass 3.** Hardware-register operands use `symbols.inc` names
|
||||
(`apply_symbols.py`: 0 unexplained residue); zero-page slots keep their
|
||||
documented `ZpXX` names with ref counts in `locals.inc`; data tables remain
|
||||
classified with ROM provenance. `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: 10,537 / 32,768 bytes (32.2%).
|
||||
`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 | Vertical |
|
||||
| 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 | $8123 |
|
||||
| RESET vector | $8050 |
|
||||
| IRQ vector | $FEDF |
|
||||
| ROM file | `Slalom (U).nes` |
|
||||
| SHA-256 | `fc365a1a89f7aaf6f0c0e52705e0a5ba72e310626b475640f3b0a80093905ae4` |
|
||||
|
||||
### Header notes
|
||||
## Power-on flow
|
||||
|
||||
- none
|
||||
RESET enters at `$8050`:
|
||||
|
||||
## Open work
|
||||
sei ; CPU:$8050 PRG:0050 78
|
||||
cld ; CPU:$8051 PRG:0051 D8
|
||||
lda #$18 ; CPU:$8052 PRG:0052 A9 18
|
||||
sta PPUCTRL ; CPU:$8054 PRG:0054 8D 00 20
|
||||
lda PPUSTATUS ; CPU:$8057 PRG:0057 AD 02 20
|
||||
bpl Reset_OnNonnegative ; CPU:$805A PRG:005A 10 FB
|
||||
lda PPUSTATUS ; CPU:$805C PRG:005C AD 02 20
|
||||
bpl Reset_OnNonnegative2 ; CPU:$805F PRG:005F 10 FB
|
||||
jsr Sub_B476 ; CPU:$8061 PRG:0061 20 76 B4
|
||||
jsr Sub_8A6D ; CPU:$8064 PRG:0064 20 6D 8A
|
||||
lda #$FF ; CPU:$8067 PRG:0067 A9 FF
|
||||
sta $0731 ; CPU:$8069 PRG:0069 8D 31 07
|
||||
|
||||
- **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 `$8123`:
|
||||
|
||||
## Files
|
||||
lda PPUSTATUS ; CPU:$8123 PRG:0123 AD 02 20
|
||||
lda #$00 ; CPU:$8126 PRG:0126 A9 00
|
||||
sta OAMADDR ; CPU:$8128 PRG:0128 8D 03 20
|
||||
lda #$04 ; CPU:$812B PRG:012B A9 04
|
||||
sta OAMDMA ; CPU:$812D PRG:012D 8D 14 40
|
||||
jsr Sub_B438 ; CPU:$8130 PRG:0130 20 38 B4
|
||||
ldx Zp02 ; CPU:$8133 PRG:0133 A6 02
|
||||
lda $8142,x ; CPU:$8135 PRG:0135 BD 42 81
|
||||
|
||||
| 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)
|
||||
|
||||
- `$8000-$804F` (80 bytes) - `CopyrightText`
|
||||
- `$8142-$8165` (36 bytes) - `GameStateHandlerPointerTable`
|
||||
- `$8287-$829A` (20 bytes) - `ObjectHandlerPointerTable`
|
||||
- `$8347-$8372` (44 bytes) - `ObjectActionPointerTable`
|
||||
- `$84C6-$84EB` (38 bytes) - `SkiRecordNameTable`
|
||||
- `$85C5-$87F7` (563 bytes) - `PlayerNameText`
|
||||
- `$8828-$8876` (79 bytes) - `WorldRecordText`
|
||||
- `$8AD8-$8B25` (78 bytes) - `CourseNameTable`
|
||||
- `$8B59-$8B7B` (35 bytes) - `CourseRecordTable`
|
||||
- `$8CA1-$8CA6` (6 bytes) - `CharacterCharsetTable`
|
||||
- `$8CE4-$8CF7` (20 bytes) - `GameOverText`
|
||||
- `$8FB3-$9032` (128 bytes) - `SkierXPositionTable`
|
||||
- `$9067-$9086` (32 bytes) - `SkierMovementTable`
|
||||
- `$9125-$9130` (12 bytes) - `KeyboardInputMap`
|
||||
- `$9205-$925C` (88 bytes) - `SlalomPathTable`
|
||||
- `$9648-$966F` (40 bytes) - `SkierSpeedTable`
|
||||
|
||||
## Build
|
||||
|
||||
```
|
||||
Byte-identical ROM verified.
|
||||
```
|
||||
Reference in new issue
Block a user