A commented disassembly of Sky Jaguar, Konami's RC-721 for the MSX, a 16 KB cartridge mapped into page 1 (0x4000–0x7FFF). It reassembles into the exact ROM, byte for byte, and every one of its 16,384 bytes is accounted for.
No repository distributes the game. Put your own dump in the root as
skyjaguar.rom, 16384 bytes, sha256
58abc5aec19dbca6f6aaf278b233a85219afde9622a9c3b34544b94a350d2a3b
make comprueba checks it.
make traces the flow, builds the listing, reassembles it and runs the tests
make verify the test that decides: reassembling must give the ROM back
make sanity that not one byte is left unexplained, and no data comes out as code
make densidad how much is commented, routine by routine
make web rebuilds this site from the ROM and the notes
The listing is not hand-edited: tools/mkasm.py builds it from a flow trace and
a file of address-anchored notes, so the comments survive a re-trace. The tracer
follows the flow from the entry points; the ones it cannot deduce on its own —the
interrupt hook, the jump tables, and the routines reached through push/ret—
are declared in src/skyjaguar.entries, each with its reason.
The images on this site are not captures either: they are drawn by running in Python the same decompressors the Z80 runs, over the cartridge's own bytes. If a range or a format were wrong, noise would come out instead of the landscape.
Sky Jaguar is Konami's RC-721, from 1984: 16 KB in page 1, with no bank
switching. The AB header at 0x4000 declares only INIT (0x4010); STATEMENT,
DEVICE and TEXT are all zero.
In many of its MSX cartridges Konami hid, at the end of the ROM, its catalogue number and the title in katakana. The find is Manuel Pazos's (@ManuelPazosMSX), and the block lives at offset 0x3FF0 — the end of the page.
This one does not have it, and that was checked by scanning all 16,384 positions, not just the tail. The dump shows why: the ROM runs full of data right up to 0x7FFB, with only four bytes of 0xFF filler left over. There is no room.
The scanner was validated first against four other cartridges of the same family that do carry the mark, which is the only way to trust a negative result: a finder that cannot find what is there proves nothing about what is not.
| bytes | ||
|---|---|---|
| traced code | 7,086 | 43.25 % |
| identified data | 9,298 | 56.75 % |
| unexplained | 0 | 0.00 % |
The data sits in 64 named and explained ranges: the stage map, the compressed scripts of the landscape, the character patterns and colours, the sprites, the sound player's tables and the aiming tables.
INIT (0x4010) leaves a jp 0x4043 in the H.KEYI hook and falls into a jr to
itself. From there the main program does nothing: the entire game runs inside
the per-frame interrupt.
0x40A5 reads the 0xE000 / 0xE001 pair — the state and the sub-state — and
dispatches through 0x4071, which is a pop hl / add a,a / jp (hl): the table of
eight states sits right after the CALL, at 0x40C9, so the return address is
itself the pointer to the table. Inside each state, djnz chains split the
sub-states.
0x4540 does the whole frame: dumps the sprites to VRAM, advances the background,
moves the plane and the wave, and walks the seven object slots at 0xE200, 16
bytes each. Each slot carries its type, and 0x534F dispatches it with a
push bc / ret through the table of 21 routines at 0x535F.
There is a single 1920-row stage that repeats, with the difficulty climbing
(0xE1D3, capped at 2). PASO_DE_FONDO (0x5837) redraws it whole once every
sixteen frames, and the fine scroll comes out of a table trick:
position / 8.2 * (position and 7): these are the eight ways of starting the same strip
offset by zero to seven rows. That is the scroll.0x00 closes the row and moves
up one, bit 7 set copies that many cells verbatim, 0x01..0x7F repeats the
next one, and 0xFF ends the strip and asks the map for the next.It is written into the name table bottom-up from 0x3AE1, in 24 rows of 23 columns: the eight on the right are the score panel.
The landscape characters are 0x40 to 0xA7, with patterns at 0x6DCA and colours at 0x702B. Characters 0x00 to 0x0F have no pattern at all: 0x4B71 gives each one a solid colour, and they are the sea and the flatlands.
The graphics are all compressed, with two of the house's own interpreters: 0x439C writes to VRAM and 0x43D8 to the name table. The second has a nice touch: entering at 0x43F3 it writes zeros instead of the data, so the same script both paints and erases.
0x79D8 and 0x7A7A drive the house PSG player, with twelve bytes of state per
channel —ld de,0x000C at 0x7A89, and the bases 0xE01A, 0xE026 and 0xE032 sit
twelve apart—. It is the same framework Konami spread across its MSX
cartridges.
The drawings on this site come from the ROM, not from the emulator. But looking at a picture is not enough to believe it: in this series the VRAM is dumped from openMSX and compared byte for byte against what the Python builds. If they match, the format has been read correctly.
openmsx -machine Philips_VG_8020 -cart skyjaguar.rom
tools/ holds openMSX TCL scripts meant for checking, not for illustrating: they
dump the 16 KB of VRAM and the VDP registers and exit on their own, with a
real-time watchdog so a broken script cannot leave the emulator hanging.
Two things learned the hard way, in case you write your own: in TCL do not nest
quotes inside a string (use {VDP regs}), and do not set breakpoints that fire
every frame inside drawing routines — they choke the emulator, which then never
even gets a game started.
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, 54 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) |
|---|---|---|---|
| Yie Ar Kung-Fu | 26 | 356 | PASO_DE_ESTADO (0x40A5) = un_cuadro_de_juego |
| Hyper Sports 3 | 17 | 233 | LEE_TECLADO (0x4479) = teclado_del_jugador_1 |
| Yie Ar Kung-Fu II | 17 | 180 | LEE_TECLADO (0x4479) = lee_las_filas_7_y_8_del_teclado |
| Hyper Sports 2 | 16 | 224 | REPARTE_CANALES (0x7A07) = SOLO_SI_PESA_MAS |
| Mopi Ranger | 16 | 211 | SUMA_PUNTOS (0x424C) = suma_al_marcador |
| The Goonies | 15 | 184 | PINTA_DOS_CIFRAS (0x42F0) = escribe_en_bcd |
| Knightmare | 15 | 162 | INTERRUPCION (0x4043) = cada_cuadro |
| Konami’s Soccer | 14 | 124 | PASO_CORTINILLA (0x4505) = sube_el_logotipo_una_fila |
| Konami's Ping Pong | 13 | 140 | LEE_TECLADO (0x4479) = lee_teclado_1 |
| Hyper Rally | 12 | 124 | INTERRUPCION (0x4043) = INT |
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.