Hole in One

An eighteen-hole course, par 72 and 6,430 metres, inside 16 KB: each hole fits in some three hundred bytes because it declares three materials in its header and then paints with them, the pattern table is stored once and serves all three thirds of the screen, and the title's wordmark sneaks in as fourteen tiles loaded on top.

HAL Laboratory · © HAL 1984 - A 16 KB cartridge - MSX1 · page 2 - Dump 14311cc2…

There is not one illustration here. The wordmark, the scoreboard and all eighteen holes are drawn from the bytes of the ROM, by running in Python the same decompressors and the same script interpreter the Z80 runs, and checked against the emulator's VRAM: 13,655 of 13,664 bytes identical — the nine that differ are the scoreboard digits, which the game writes as it plays — and all 480 cells of every hole exact across six in-game dumps. The one screen capture on this page is the CALL GOLF one, because what it shows is precisely the cartridge running. The listing and the numbers come from the binary and are reproducible with make.

The cartridge in numbers

100%of the binary explained
358routines identified
18holes, par 72, 6,430 m
6,065bytes of code
10,319bytes of data
0bytes unidentified

What is inside

The game

Curiosities

Under the hood