Under the hood

Rebuilding the ROM

make            # listing, reassembly, check and tests
make verify     # the 16 reassembled banks give the whole ROM, byte for byte
make sanity     # every byte, explained as code or as data with its reader

You need the cartridge image (pennantrace2.rom, sha1 93b07e3cd5ae2f00b36824a74f83a3ef0d65d0d5), which is not distributed.

In figures

   
explained 100 % of the 131,072 bytes
code 54,945 bytes, 27,220 instructions
data 76,127 bytes, every block with the routine that reads it
routines 3,533
commented 40.4 % of the instructions, no routine below 10 %

The cartridge

Gekitotsu Pennant Race 2 (Konami, 1989, RC-766): a 128 KB MegaROM, sixteen 8 KB banks with Konami's SCC mapper (registers at 0x5000, 0x7000, 0x9000 and 0xB000; 0x3F at 0x9000 opens the SCC registers at 0x9800).

The RAM

   
0xC000-0xC2CC the sound engine: 8 channels of 0x40 bytes and its state
0xC300 / 0xC301 the state and its step
0xC352 the title menu option
0xC35E the game step
0xC363-0xC365 balls, strikes and outs
0xC366 the half inning (bit 0: the home team bats)
0xC36C / 0xC381 each team's turn and batting order
0xC39B the stadium (0 the open one, 1 the dome)
0xC480-0xC492 the batter: state, drawing (0xC482), position (0xC484)
0xC4C0 the ball
0xC800 / 0xC970 the unpacked records of both teams (0x142 bytes)
0xCC00 / 0xCE00 the colours and attributes of the 32 sprites
0xD226 / 0xD227 the two teams of the game
0x9890 (page 2 RAM) the field map, 96 x 80 characters

The VRAM

The V9938 in two modes:

How it was done

Code shared with other Konami cartridges

This disassembly has been compared, instruction by instruction, with every other Konami one in the series. A block counts when the same instructions, at least six of them from a label to its ret or its unconditional jump, are in both cartridges; the addresses are left aside, because they change from one cartridge to the next. Of the other 57, 43 have at least one block in common with this one; these are the ones that share the most:

Cartridge Blocks Instructions For example (here = there)
The Pro Yakyuu Gekitotsu Pennant Race 119 1,758 dibujos (p00:4BD9)
Nemesis 3 - The Eve of Destruction 101 1,586 cartucho_en_pagina_2 (p00:40E3) = cartucho_en_8000
King's Valley II 70 931 orden_eb (p13:6C32)
Parodius 52 743 texto (p00:489F) = lista_a_vram
Salamander - Operation X 51 708 texto (p00:489F) = lista_a_vram
Hai no Majutsushi - Mahjong 2 48 558 cartucho_en_pagina_2 (p00:40E3) = cartucho_en_8000
Konami’s Game Master 2 40 499 borra_bloque_vram (p00:4B9D) = vdp_hmmv
Contra 36 570 orden_eb (p13:6C32)
F-1 Spirit — The Way to Formula 1 36 507 nota_scc (p13:64D3) = NOTA_CRUDA
Nemesis 2 33 465 voltea_arriba_abajo (p00:5653) = cabeza_abajo

The whole matrix, the 58 cartridges against each other, is on The routines in the series database, along with the method and the program that measures it.