This repository does not include the game. It includes the tools that, starting from your own image of the cartridge, rebuild the commented listing, reassemble it and check that the ROM comes out byte for byte.
parodius.rom. Its sha256: 52fe4700c10f91167a5d2f0596772d1081e8d4d5b529c732b907c15b31170511.make, python3 and the pasmo assembler.make # trace, generate the listing, reassemble and run the tests
make verify # the sixteen banks against the ROM
make densidad # how many instructions are commented
make sanity # the budget: not one byte unassigned
python tools/imagenes.py docs/imagenes
python tools/musica.py todas docs/audio
make verify must say OK: la ROM entera reproducible byte a byte.
src/parodius_pNN.asm: the listing of each bank (p00 to p15).src/pNN.notes: the names, comments and data blocks of each bank. The listing is generated from here.tools/mapa.py, tools/personajes.py, tools/enemigos.py, tools/jefes.py, tools/repite.py, tools/vdp.py and tools/imagenes.py: the images.tools/musica.py: the music; tools/textos.py: the texts.tools/omsx_vram.tcl and tools/omsx_psg.tcl: the openMSX probes everything is checked with.The maps, bosses, characters and labels come from the ROM. Still screens are rebuilt by replaying, with the bytes of the ROM, what the cartridge writes to the VRAM (the BIOS, the runs of p00:4F7F, the outi copies of p00:5ACC and p01:65BA, the letters of p00:56CB and the masked runs of the dissolve, p08:8120), and each one matches the emulator's VRAM. The animations are the VRAM and VDP registers of every frame of a game in openMSX (VRAM_CUADROS in tools/omsx_vram.tcl), painted as the TMS9918 paints them (tools/vdp.py).
A first-generation MSX: the TMS9918 VDP in SCREEN 2, the PSG, and the SCC inside the cartridge itself. Names at 0x3800, colours at 0x0000, patterns at 0x2000, sprite patterns at 0x1800 and their attributes at 0x3B00. The play area is 22 rows; the bottom two are the status bar.
Konami's with SCC: sixteen 8 KB banks. Bank 0 is fixed at 0x4000 and the other three windows are selected at 0x7000, 0x9000 and 0xB000, with a copy at 0xF0F1-0xF0F3. The game sets them three at a time (p00:4110, p00:4148, p00:4143): 1-2-3 for the game, 4-5-6 for the sound, 7-8-9 for the intro, the ending and the pause, and 11-12-13 for the graphics. Banks 14 and 15 go at 0x8000-0xBFFF for the maps and objects (p00:412C), and 9, 3 and 13 are put alone at 0xA000 (p00:4136, p00:4161, p00:4167), as is 10 with the music scores (p04:6622).
INIT (p00:4099) sets up the RAM and installs the H.KEYI hook (p00:402E): everything runs inside the interrupt. First the sound, with banks 4-5-6 (p04:6006); then, if the previous frame has finished (0xE205), one game frame, which goes in steps (0xE200, p00:4AE9): the logo, the title, the intro, the select, the game, the lives, game over and the ending.
Eight channels from 0xE000: three on the PSG and five on the SCC. There are 86 sounds; each one has a header with its channels and priority (p04:6268) and one score per channel. Sound effects use two channels and tunes six, seven or eight.
The game uses 0xE000-0xEFFF: the sound at 0xE000, the game step at 0xE200, the stage at 0xE241, the scroll at 0xE243, the character at 0xE24E and the power-up bar at 0xE250. The player is the record at 0xE400 and its shots are at 0xE470; the 12 enemies are 0x40-byte records at 0xE500; character objects, at 0xE900; the boss, at 0xE980. Sprite attributes are prepared at 0xEB00 and the scenery at 0xED00 (22 rows of 32), and every frame they are sent to the VRAM (p01:6615, p01:668A).
The Game Master 2: see Curiosities.
100% of the 131,072 bytes is explained: 35,953 of code and 95,119 of data. The eight banks with code have 2,385 routines, and 6,853 of their 17,087 instructions are commented: 40.1%, with no routine below 10%.
The names of the routines and the RAM are in tools/anotaciones.py, and tools/anota.py carries them to every call and every access in the listing.
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, 50 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) |
|---|---|---|---|
| Nemesis 2 | 169 | 2,385 | pide_sonido (p00:43B4) = sonido |
| Nemesis 3 - The Eve of Destruction | 151 | 2,090 | rachas_con_destino (p00:4F79) = rle_con_direccion |
| Salamander - Operation X | 142 | 2,227 | pide_sonido (p00:43B4) |
| King's Valley II | 80 | 1,279 | rachas_8120 (p08:8120) |
| The Pro Yakyuu Gekitotsu Pennant Race | 71 | 1,189 | pide_sonido (p00:43B4) = sonido |
| Nemesis / Gradius | 54 | 690 | rachas_con_destino (p00:4F79) = descomprime_con_destino |
| Contra | 53 | 1,010 | orden (p04:6AE5) |
| Gekitotsu Pennant Race 2 | 52 | 743 | lista_a_vram (p00:4F5E) = texto |
| F-1 Spirit — The Way to Formula 1 | 51 | 881 | rachas_con_destino (p00:4F79) = RLE_SIGUE_PUNTERO |
| Shalom: Knightmare III | 45 | 567 | carga_canal (p04:6149) = arranca_canal |
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.