Click-wheel games¶
The iPod classic runs games, and they are real ARM binaries, written by outside studios, loaded into the running firmware and given a frame loop. Apple never published an SDK, yet EA, Namco, Ubisoft and PopCap all shipped titles from 2006. There was a private one, and its whole surface still sits in the firmware image.
Two pages carry the detail:
- The eApp format: how a game binary is laid out, and how its imports are bound.
- The games API: the eleven interfaces and 486 functions a game is bound against.
What ships on the device¶
The 2.0.1 firmware partition (the FAT16 IPODRESOURC volume) carries three bundles. The directory
name is a numeric item id, not the title:
Games/games_RO/11004 iPod Quiz Executables/TWA_n25_3178308.bin 500532 bytes
Games/games_RO/11010 Klondike Executables/Klondike_3178311.bin 632804 bytes
Games/games_RO/12347 Vortex Executables/Vortex_3178305.bin 640368 bytes
A preinstalled game has the same bundle shape as one iTunes syncs into iPod_Control/games_RO/,
under the same kind of id. Each bundle holds its own artwork, fonts, localisation, level data and
audio. The audio is plain .m4a and goes through the same sm1 path as a track.
The bundle's Manifest.plist names one binary per platform, and the firmware picks the one that
matches the model it runs on.
The sandbox: four access domains¶
A game never sees a filesystem. It names a domain and a relative tail, and the firmware decides where that lands:
| kind | domain | what it means |
|---|---|---|
| 0 | games_RO |
the game bundle itself, read only |
| 1 | gamedata_RW |
that game's own data, read/write |
| 2 | gamestats_WO |
write only |
| 3 | gamedata_ShareRW |
a shared area, read/write |
| 4 | games_RO |
the default arm, same as 0 |
graph LR
G["a running game"]
P["the path builder<br/>domain + relative tail"]
RO["games_RO<br/>the bundle, read only"]
RW["gamedata_RW<br/>its own data"]
WO["gamestats_WO<br/><b>write only</b>"]
SH["gamedata_ShareRW<br/>shared"]
G -- "names a DOMAIN, never a path" --> P
P --> RO
P --> RW
P --> WO
P --> SH
The path builder strips a leading / before composing, so a game cannot escape by anchoring at the
root. It also resolves the domain name itself instead of taking a path from the caller.
gamestats_WO is the odd one. A game can post a score there and read nothing back, not even its own
previous scores. A one-way stats channel inside a four-domain capability model looks like a design
for code written by other people.
From the menu to a running game¶
The Games menu is an ordinary archive-driven list screen with three slots. Its SEVT record holds
the whole interaction:
list.chosen -> navigator.PushScreen Game_Screen Game_Screen_Default screenpush
list.delayedselected -> HandleGameHilited
The launch is a screen push that the record carries, with no code of its own. The rows are another
matter, because a game is a bundle iTunes put on the disk. For those the firmware scans the two
domains and reads each Manifest.plist.
graph LR
M["<b>Games_Menu_Screen</b><br/>rows from the bundle scan"]
S["<b>games_app_state</b><br/>the highlighted row INDEX"]
G["<b>Game_Screen</b> (TCGameScreen)<br/>pushed by the SEVT record"]
L["<b>launcher</b><br/>read the executable into the arena"]
E["<b>eApp loader</b><br/>bind 486 imports"]
R["<b>runner task</b><br/>call entry[4] per frame"]
ERR["Game_*_Error_Screen<br/>version · signing · memory · unknown"]
M -- "list.delayedselected<br/>HandleGameHilited" --> S
M -- "list.chosen · PushScreen" --> G
S -. "read by the constructor" .-> G
G -- "0x66000003 StartGame" --> L --> E --> R
E -- "refusal" --> ERR
The menu never hands the launcher a game. It parks the highlighted row index in a shared
app-state singleton and pushes the screen. TCGameScreen's constructor then picks the choice back
up from that same singleton.
One screen, six layouts¶
Game_Screen has six layouts, and the layouts are its state machine. Its notification handler
dispatches on a single event space:
0x66000003 StartGame the launch
0x66000004 ShowVersionError Game_Version_Error_Screen
0x66000005 ShowSigningError Game_Signing_Error_Screen
0x66000006 ShowMemoryError Game_Memory_Error_Screen
0x66000007 ShowUnknownError Game_Unknown_Error_Screen
0x66xxxxxx covers the whole subsystem. 0x01..0x07 is the screen's lifecycle. The higher
numbers, 0x6600000D..0x66000025, are a running game's audio commands, which is why the games
API's Audio interface is asynchronous.
Sound, music and saves¶
A game's sound effects go through the firmware's software mixer, the same machinery that would mix the wheel's click. Each effect gets a voice, resampled and panned by the device's own arithmetic and mixed into the output ring.
Its music is a file in its bundle, handed to the ordinary media player. Vortex queues its three tracks and asks for repeat. Effects play over the music as on the original, and an I2S capture confirms it down to the sample peak.
A game's saves go to a save store of four channels that the firmware keeps in memory. They reach the disk only when the store is flushed. On the device that happens when the OS writes out its database state. Chikuma flushes when the game stops, which is its own choice and declared as such.
Where Chikuma stands¶
All three shipped titles boot, and none of them quits. Measured 2026-09-02: each one launched from the Games menu on a cold boot, then ran for another minute with one select press halfway through.
| game | frames in the watch | where it gets to |
|---|---|---|
| iPod Quiz | 0x1100 | its name entry: title, letter ring, the 1:00 timer |
| Klondike | 0x2a00 | its name entry, over the card-back art |
| Vortex | 0x1400 | ENTER NAME, with the alphabet ring |
No fault, no refused allocation, no quit. The wheel reaches them too. The select press arrives as a key event, and each game answers by asking for sound effects.
On the real iPod¶
The games play on the device as well, and Vortex runs at about 55 frames a second with no flicker. The frame rate depends on the interface under the game. It does not repaint the whole panel under a running game, and the game's frames reach the panel without waiting for the interface to publish one. The game waits for its back buffer the way the firmware makes it wait.
A game on the device also needs the board's platform number. The firmware copies it out of the boot hand-off once at start-up. Read live later, that memory has been reused, and every game reports "not supported".
Two loader contracts¶
AsyncFileIO kind 6 loads a whole file and kind 7 stores one. The dispatcher's arm opens, transfers
and closes, and it reports the transfer's status, not the close's. Answered as a plain open, the
completion reads as "loaded" and the game parses a buffer nothing has filled.
A game's heap has to be the size the device's is. Klondike asks for 512 KiB while it loads its card textures, and an eight-megabyte heap refuses it. A game that is told no sets its state to 5 and quits. The device sizes its heap from the DRAM range and gives a game 3-8 MiB of arena on top of that.
Chikuma takes a game's buffers and stack from the heap at launch and gives them back when it stops. A game's thread ends the firmware's way, through a reaper task that frees its stack.
Parts not reproduced yet¶
Some Audio, Users and miscTBD slots are still unimplemented, and each one logs the first time
a game touches it. The mixer's 8-bit renderers, which no shipped game asks for, are reproduced with
the rest.
The original's game screen holds no backlight that anyone has found, so Chikuma does not hold one either until the original is seen doing it.
The firmware also reads a family-code halfword out of SysInfo that nothing in the image ever writes. It is hardware data the emulator owes the guest, and the emulator zeroes it for the moment. It did not stop any of the three games, since RetailOS reads the same zeroed block in the same emulator, but it changes a step the manifest loader takes.
The implementation lives in chikuma/drivers/games/, with host tests that assert the original's
behaviour.