When a round's script reaches its end (0xFF), guion (0x5384) goes back to
step 0, but leaves HL pointing at the pointer table of the scripts (0x5FA0)
instead of at the round's script (0x53C4). That "step" asks for 0xB4 wolves (the
table's first byte), which never fit, so it is skipped: the script goes on with
step 1 and its first step never comes out again. In a long round the script
goes round several times (round 1 brings out 55 wolves per pass and ends after
36 are popped, but the ones that get away up the ladder do not count).
Measured in the rondas.tcl recording (at the end of round 1, with the wolves
left held at 1, every step is skipped and the script runs fast): the step
(0xE00C) reaches 34, the 0xFF, at frame 2020, and at 2022 it is already 1,
without going through 0.
Every turn of a round's loop starts by calling 0x4722, which reads byte 0x4001
of the ROM and returns: it waits for nothing. And in the whole program there
is not one halt nor one read of the VDP: the loop does not wait for the frame,
it runs as fast as the Z80 can. Measured in openMSX
(tools/sonda_vueltas.tcl): in 900 frames of round 1 the loop went round
3,191 times, 3 in 414 frames, 4 in 481 and 5 in another 5. So the game's
speed depends on how much is on screen. That same read of 0x4001 is padding in
the wait loops (0x424D, 0x4364, 0x44D9, 0x4576).
When painting the falling pig (cerdita_cae, 0x4726), after her two sprites
there is an ld (0x4000),a with 0xD0 (0x4747): it writes to the ROM, and does
nothing. Judging by the value, the one that ends the sprite list, it was
probably meant for the VRAM.
In the wolves going down and going up, before checking whether they are at the
basket's height to throw a stone, there is an and 7 and a cp 2 (0x50B1,
0x518C) whose result the next instruction overwrites: they count for nothing.
borra_lobos
clears), but only the first is used.suma_puntos (0x49AA)
only looks for a free one among the first four.borra_lobos leaves a 0xFF after the sixth wolf (0xE071) that nobody reads.pantalla_inicio,
0x5960), but from 0x791B on they are no longer sprites: they are the
characters' colours (in RLE) and the start of the even rounds' map. The real
sprites are 34; the last six that get uploaded are not used.The round number is written as a single character, the number plus 0x31
(pinta_ronda, 0x4627), and if it comes out as 0x3A it turns it into 0x41: the
tenth round is ROUND A.
What is pressed to start (the space bar or the first joystick's button, or the second joystick's) decides which joystick each player gets (see The game).