How it fits

A real transformer, written in assembly for a 1989 8-bit CPU. It runs here in an emulator and has never been tested on a physical console.

44,288
parameters
128 KB
ROM
8 KB
built-in RAM
4.19 MHz
no multiply instruction

What happens when you type

  1. YouYOU ARE DUMB
  2. Keyword parserINSULTand keeps the word DUMB
  3. The prompt it sees SMUGPESTNEWONCENONEINSULTNONE
  4. Transformerone tokenabout 0.93 s each, fed back in
  5. ScreenDUMB? THAT FIT IN ONE BYTE.

From a real run. The model sees those labels and never your sentence, which is why it can't hold a general conversation. The game fills in the saved word when it draws the reply.

Inside the model

720token vocabulary, up to 32 at a time
32embedding
2 headsattention
64feed-forward
16bottleneck
720scores, then a weighted draw

One block, with 8-bit weights and activations. Bar widths are a sketch, not to scale. The ROM's output matches a separate Python reference, token for token.

Where everything lives

Built-in work RAM: 5,217 of 8,192 bytes used

ROM: 128 KB

Cartridge RAM: 32 KB

Everything it remembers about you fits in 42 bytes. That's a save file, not learning: the weights never change.

Ten times faster, same words

Seconds per token, recorded in the PyBoy emulator. Each step keeps the ones above it. Race the first and last live.

Multiplying without multiply

13 × 11

= (13 + 11)² ÷ 4 − (13 − 11)² ÷ 4

= 144 − 1 = 143

A transformer is mostly multiplication, and this CPU can't do it directly. Looking up squares in a table made the model about 1.75 times faster.

A fan project inspired by Nintendo's Game Boy (1989). Not affiliated with or endorsed by Nintendo. Game Boy is a trademark of Nintendo. Emulation by binjgb. The visit count comes from a free counter service. What you type stays in your browser.