1988 · Systems Editoriale (Commodore 64 Club)

About this page

This minisite was contributed by jankfoundry, air. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/mr-hat with me to Gold.

Footprint

Every byte of the C64's 64 KB, one pixel each, 512 to a row. Lit pixels are what this game is: its code, graphics, level data, sound, text, tables and variables, exactly where they sit in memory. Dim areas are screen and working memory; dark is unused.

Status

Tiersilver
Coverage100 % of the bytes the game uses have a description
Comments checkedAudited & low error rate. Every comment was audited once, then the last sample of 60 comments had 2 wrong, so between 1 and 11 % of the listing’s comments are likely wrong. How listings are checked
Build analysedCommodore 64 Club issue 14, disk side B (a freezer backup of the title screen)
Copyagent-draft
Toolshost: Linux 6.8 x86_64, Ubuntu 24.04 desktop with sixteen cores; the emulator ran under xvfb-run (no display in the agent's shell), emulator: VICE, release v3.13.1, v3.13.1-linux-x86_64-gui.zip, MCP on port 6511 (KIT_VICE_PORT); 6512 for the comparison of versions on 4 October 2026, disassembler: regenerator2000 0.9.20, python: 3.12.3, node: 20.19.5, subagents: nine annotation agents on disjoint address ranges and one page verifier, all claude-opus-5-5; one research agent for the web sources only, on the Agent tool's `sonnet` alias, exact model id not stated, widget tests: node 20.19.5: the title tune's port checked against the game's player in kit/cpu/cpu6502.js, write by write (work/music-test.js); the point adders run in the simulator (work/scoretest.js), browser check: Chromium headless shell 1243 (Playwright's cache), a full-page screenshot of the built page
Modelclaude-opus-5-5
Kit version0.0.46

How the listing was checked

Every step that measured the Source tab’s comments or made them more accurate, in the order it happened, with the models that did it. Accuracy of the Source explains each step and what the row above makes of them.

StepByWhat it foundOf the listing
Researchnot recordedLooked the game up online (its manual, reviews or wiki pages) before reading its code.
Annotationclaude-opus-5-5Wrote the listing’s comments.
nine agents on disjoint ranges
Sample 1claude-opus-5-515 of 60 comments wrong, so between 16 and 37 % of the listing is likely wrong. All 15 were then corrected.
about seven from each annotation agent's range; 14 wrong in a detail, one misattribution
Audit 1claude-opus-5-5Checked all 1,268 comments and corrected 235.
nine agents; nine labels also corrected
Sample 2claude-opus-5-52 of 60 comments wrong, so between 1 and 11 % of the listing is likely wrong. Both were then corrected.
none from the first sample; both minor errors
Annotationclaude-opus-5-5[1m]Wrote the listing’s comments. 100 % of the program is described, in 1,257 comments.
the zeros after the empty sound routines at $1CC2 and $1CE2 described, and the listing rebuilt

likely wrong the sample’s range corrected right, or likely right not yet measured

Contributors

Other places to love this game

What the game does, and where we found it

Read this before annotating code. What the game is documented to do, with verification status against the binary. Statuses: open (documented, not found yet), traced (in the code, could not be exercised; say what was tried), confirmed (in the code, consistent with the emulator), live (observed directly), differs (the code does something else). "Absent" is not a status.

Sources, all read on 30 September 2026 (work/research.md has the notes, source by source). No C64-Wiki page exists for the game (English and German both 404), and no manual beyond the magazine's blurb was found.

Features

FeatureStatusWhere
Joystick in port 2livethe title waits for $DC00 = $6F at $1770; every room loop reads $DC00
Fire on the title starts the gamelive$1770-$1788
Title screen "SYSTEMS PRESENTS A NEW GAME WITH": Mr Hat, Octopus, Snaily, Dynky (so spelt), Kniffy, "and all others"live$B683 draws it from the screen codes at $C000-$C058; reference/title.png
Title musicconfirmedthe player $C080-$C373 from the title's interrupt $C0AF; register activity seen, no sound in the session
Walk left and rightlive$5340/$5370 and each room's copies, about 2.4 pixels a frame
Fire jumps, the way Mr Hat faceslivefrom standing in room 1, fire held: sprite Y 204 to 183, 13 frames, back, again while held; $DC00 = $6F at $438D and in every room loop but room 10's (a ladder loop); three phases of 21 steps
Stick uplivedoes nothing on a floor (20 frames held in room 1); climbs ladders and rides lifts ($4B20, $4000, $8265)
Stick down: crouch, climb down, take a treasuretraced$7D compared in the room loops and in $8E10, $B100-$B4BB; not tried live
Touching a guardian kills ("everything you touch kills you", Lemon64)livein room 1, Mr Hat sank into the floor and restarted at the room's entry (reference/death.png, reference/room01-respawn.png); $D01E read as exact values at $55B0, death $A877
Deadly spots in the roomstraced$BB10, by position and exact standing height; room 6's dark-only hazard
Lives, four marks at the bottom rightlive$07B9, $07BA, $07E1, $07E2: one recoloured to $CC per death (by the code, two for a death in room 3; not tried); after five deaths in room 1 the title came back
Game overliveafter the last life $4475 returns to the title, which waits for fire for a new game; there is no game-over screen of its own
After a game over, the title's I is brokenlivethe title set-up $CDC0 copies the font again from $CE00, whose $CE48-$CE55 are damaged in the image; the I in "WITH", "SNAILY" and "KNIFFY", and in the end message, shows noise in its top half (reference/title-after-game-over.png, reference/end-screen.png); botowrap's fixed version puts the bytes back (facts.md, "Versions")
Status line: SCORE, ROOM, STAGElivebitmap rows 23-24, glyphs at $1600; reference/stage1-room1.png
Score in thousandslive$41DA/$8AD0 step the thousands digit; the 1,000, 10,000, 25,000 and 75,000 adders run in the simulator gave exactly those scores (work/scoretest.js); the 20,000 and 50,000 adders by the code
Eleven rooms in four stages (web screenshots reach ROOM 10, STAGE 4)liverooms 1-11 drawn by starting each set-up (reference/room02-setup.png to room11-setup.png); stage 1 room 1, stage 2 rooms 2-5, stage 3 rooms 6-9, stage 4 rooms 10-11 (rooms 4 and 7 keep the STAGE digit of the room before, so started from room 1 they show STAGE 1)
Room 1: three floors and a LIFTtracedthe lift ride $4000 moves Mr Hat and sprite 5 56 pixels a floor; not ridden live
Ladderstraced$4B20; rooms 2, 3, 5, 6, 9, 10, 11, and room 8's shaft
Guardians: Octopus, Snaily, Dinky, Kniffy and otherslivethey move in room 1 (sprites 0, 1, 7); each room's IRQ moves its own (facts.md, "Guardians")
Treasures worth pointstraced$8E10, $B100-$B4BB: 10,000 to 75,000 each, taken with the stick down
Keys and doors (Lupenio's text: "each key opens one door and one only")tracedroom 9's two doors, which test for the objects carried from rooms 6 and 8, can never open: their fills were patched out (facts.md, "Leftovers")
Colour-coded switches opening barriers in other roomstraced$B2E0-$B4BB, five switch and barrier pairs (facts.md, "Barriers and switches")
The candle lights the dark roomsliverooms 6 and 9 dark with $22 = 0, lit with $22 = $40 (reference/room06-lit-setup.png, room09-lit-setup.png); $5519 sets it when room 2's candle is taken (traced)
Immunitytracedthe objects of rooms 3 and 7 call $1250, which writes RTS over the death $A877 and the life loss $4C52 until $100F reaches $FE
The Golden Hat, the goal, and the endlivedrawn in room 11 ($7C00, $7C50); $7CC0, with Mr Hat level with it on the bottom floor, anywhere left of X $80, shows "WONDERFUL / YOU HAVE FINISHED YOUR MISSION" ($BFA8, $B7D8) and starts a new game. Seen live (reference/end-screen.png, work/room11win.py), with Mr Hat placed on that floor carrying nothing. By design the way needs room 5's object to open a block; in this copy that object cannot be taken (tried live), and the block is open from the start because its fill was patched out (facts.md, "The end")
RUN/STOPtracedthe game never calls the KERNAL's STOP; the vector at $0328 holds the KERNAL default $F6ED in every game snapshot. The tape's loader writes $E1 to $0328 ($A220), but the freezer's restore puts the saved value back

Beyond the documentation

Found in the code, not in the manual.

Open questions

The symbol map for this game is symbols.json; the listing behind the Source tab is listing.json. Write-ups, facts and symbol maps are CC BY-SA 4.0. The game itself is not hosted here.