The code

Everything in the interrupt

INIT (0x40C7) sets interrupt mode 1, hooks H.KEYI, puts the stack at 0xE400, clears the kilobyte of RAM and waits. The hook (0x405C) saves the twelve registers, both sets with IX and IY, before doing anything. The sixteen scenes are in the table at 0x4119, stuck right behind the call of the dispatcher at 0x4096.

The game frame (0x48CE) is twenty-seven calls in a row, one for each thing that moves or is drawn, and the clock at the end.

The bakery

The figures

The rest

The tools