The stage script lives in VRAM.0x52BB uploads it to 0x3B80,
behind the sprite attributes, and the scenery step reads it back from there
with lee_de_vram as you climb.
Pieces with bit 7 do not erase the row they leave when moving down
(0x68CC). Hence the spiders' threads and the ground ladder, which reaches
all the way to its upper section.
Spiders are kept apart. Type 0xE0 entries go to three records with a
16-bit row, drawn while they are between −16 and 191 (0x6C8E) and erased
when they leave (0x6D41, with a zero dragged along by lddr). If no
record is free, the spider stays as one more object (0x682C).
The screen doubles as the map: 0x61A3, 0x6465, 0x6251, 0x6EB4
and 0x7167 ask VRAM what another game would keep in RAM.
Randomness comes from the R register: nine ld a,r.
Nine skies. The first stage's mask comes from 0x51CE and not from
0x741F; with the table's first value, 0x11, the check drifts by 1,809
bytes of colour.
Piece group 0x16 reads itself. It closes all nine scripts, declares
sixteen entries and has fifteen: the sixteenth is the first two bytes of the
group table. It goes unnoticed because the 0xFF that ends the climb comes
first.
Two players, 32 bytes. Scene 13 (0x41CF) swaps the 32 bytes at
0xE050 with the ones at 0xE080: the player in turn is always in the same
place.
Binary to BCD without dividing.0x66F5 doubles the result with
adc a,a / daa for each bit.
The same code as Circus Charlie. The decompressor's fourteen-byte
signature, the twelve bytes of the chromatic scale and the extra life rule
are the same in the RC-712.
Ten mirrored sprites.0x60C9 flips the 320 bytes at 0x5BCD and
leaves them at 0x1940.
Two swapped comments at 0x52F1 and 0x52F3: the first loads the
pointer's high byte and the second the entry count.
The between-stages scenery is painted from the middle outwards.0x7629 takes the columns in order, but the timer's back-and-forth puts
them in 15, 16, 14, 17... Laid out in table order, the castle comes out scrambled.
Open questions
What happens after the ninth stage. The table at 0x4E1B has ten
pointers and the tenth repeats the first, and 0x7545 restores thirteen
initial values —the stage and its mask among them—, but it has not been
followed in the emulator.
The script at 0x53E4 that starts each life, with its timer at
0xE24D: how it is walked is known, not what each byte says.
Types 0x93/0x94 —the blue figures on the trunk— and
0xC9/0xCA: which piece they draw is known, not what they are in the
game.
The scoreboard's metres. The height is divided by sixteen (0x66C5),
but how many steps make a metre has not been measured.