The tunes, in three voices. They are not hand-made recordings: tools/musica.py runs the ROM's own sound engine
with tools/z80run.py -the sound routine (sonido, 0xB77E), 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 in every frame looked at, in the nine that play. Five recordings are checked (tools/guiones/): the
demo, a game up to GAME OVER, the SELECT one, the password one and the forced one with the shop, the stone and both
endings. Each recorded frame is paired with the engine frame that has the same RAM in the three channels; while an
effect plays on a channel, that channel is not looked at.
It sits at the end of the cartridge (0xB75A-0xBB37) and is the one other Casio games use: it runs once per frame from
the interrupt and takes three requests: a tune (0xE2BE), a channel A effect (0xE2C0) and a B and C one (0xE2C2);
the lower number wins. The tables: eight tunes at 0xB700 (number 0, nothing), nine channel A effects at 0xB730, six
B and C ones at 0xB742 and fourteen durations at 0xBA2F. There is one difference: where other Casio games have a
ret z so that effects are not asked for outside the game, here there is a nop (0xB75F).
During the game no tune plays: the background is an effect on channels B and C, number 3 (2 in the shops), which
the loop asks for on every pass (sonido_fondo, 0x84C2); when it ends, it is asked for again.
| Who asks for it | Length | |
|---|---|---|
| the CASIO intro | 0x9056 | 1.1 s |
| the scene starts | 0x841B | 6.8 s |
| the game | the loop, every frame (B and C effect 3) | 17.1 s |
| the shops | the loop (B and C effect 2) | 4.8 s |
| another room | leaving by an edge or a staircase (0x995F, 0xA4A7) | 1.1 s |
| the stone of the scene | touching it (0xB257) and in the true ending (0x881F) | 5.5 s |
| the ending's question | 0x878A (B and C effect 5, which repeats) | 8.6 s |
| the credits | 0x879D | 17.1 s |
| GAME OVER | 0x8693 | 3.5 s |
The ending's question starts again on its own; the others end. Number 6 is asked for by nobody (there is no
ld a,6 before musica_pide): it comes from running the engine with that number and cannot be checked.