The music

Seven tunes, in three voices. They are not recordings made by hand: tools/musica.py runs the ROM's own sound engine with tools/z80run.py -the sound routine (sonido, 0xAD76), frame by frame, with the number the game writes- and logs what it writes to the PSG through the BIOS (WRTPSG).

Checked against openMSX: the tone and volume registers of the three channels match the recorded ones, 0 different on every frame looked at, in the six tunes that played. Three recordings are checked (tools/guiones/): the title with the demo, a game up to GAME OVER and a whole game with TAB held, up to the map starting again. Each recorded frame is paired with the engine frame that has the same RAM in the three channels; the engine starts with the sound RAM and the PSG as the game had them. While an effect plays on a channel, that channel is not looked at. The roulette one is not checked: in no recording did the three tiles come out the same.

The engine

It runs once per frame from the interrupt. It takes three requests: a tune for the three channels (0xE2BE), an effect for channel A (0xE2C0) and another for channels B and C (0xE2C2); a request beats what is playing if its number is lower (musica_pide, 0xAD71). Each channel has an 18-byte block (A at 0xE280, B at 0xE292, C at 0xE2A4) that is copied to a working one, takes a step and goes back. A piece is a list of notes and commands: 0xF0 a noise note, 0xFF the end, 0xF7 silence, 0xFE start again, and three loops with their count (0xFD-0xFC, 0xFB-0xFA, 0xF9-0xF8). The tables: eight tunes at 0xAD00 (0 is silence), five channel A effects at 0xAD30, six B and C ones at 0xAD3A and fourteen note lengths at 0xB027.

  Who asks for it Length
the CASIO intro the CASIO logos meet (0x8A09) 1.1 s
the title the title (0x80D7) 38.4 s
the stage the stage starts (0x819B) 3.2 s
the fortress the fortresses of the stage broken (0xAA2B) 6.3 s
the roulette the three tiles the same (0xA639, 0xA65E) 2.5 s
the enemy at the end broken (0xA26A) 12.3 s
GAME OVER no ships left (0x82EB) 4.8 s

None starts again: they all end.

The CASIO intro

The title

The stage

The fortress

The roulette

The enemy at the end

GAME OVER