1985 · Commodore · Plus/4, 64 KB

Icicle Works

This minisite was contributed by jankfoundry. It’s currently claimed by jankfoundry who is editing it to reach a Gold tier standard.

Measured timing quirks and a name-entry limit that differs from the leaflet.

01 · Countdown timing

Secret: a countdown second lasts 51 frames

The PAL version, made for the PAL television standard, uses a small counter to pace its clock. The game loads 50 into this counter. Once per display frame, the timing code subtracts one and returns. A call that finds zero instead reloads 50 and changes the displayed time. That extra call makes the gap 51 frames long.

120

The clock code starts at $6AFB. Numbers beginning with $ are hexadecimal memory addresses, locations in the computer's memory. The clock takes time off once every 51 calls to the IRQ handler, the code run by a display interrupt. The game stores time as BCD: each half of a byte holds one decimal digit.

The game gives a little more time than a clock that counts fifty display interrupts per tick. The PAL machine produces about 49.86 of these regular timing calls per real second. Pausing with H stops the countdown.

02 · A difference from the leaflet

Secret: the score table accepts five letters

The original leaflet promises three letters for a high-score name. The program accepts five capital letters or spaces. DELETE removes a letter, and RETURN confirms the name.

The code compares the name length with 5 at $8E21. The widget's rule matches the original code for all 256 possible input bytes and for editing sequences.

ABCDE entered on the game's original high score screen
The original program accepted ABCDE. The score was set to qualify for this demonstration.
ABCDE stored in the top row of the high score table
The score record stores all five character numbers. The code at $8D5E inserts the entry. The code at $8C1D draws it.