Skip to content

About

Super Mario 64 on the NumWorks calculator (N0110, N0115, N0120): the game's own code from the n64decomp decompilation, in 3D. By the maker of NumPlay.

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

Super Mario 64 for the NumWorks calculator, by the maker of NumPlay, the collection of free NumWorks games. It comes as its own app: get SuperMario64.nwa from the latest release.

Super Mario 64 icon

Super Mario 64

Mario's first adventure in 3D, on the NumWorks calculator.
Nintendo's Super Mario 64, run by the game's own code: Peach's castle and its first five courses, with their stars.

Download SuperMario64.nwa  ·  Controls

Mario running up to Peach's castle, then a star in Bob-omb Battlefield

Highlights

  • The real game: not a lookalike, but Super Mario 64's own code, from the n64decomp/sm64 decompilation, built for the calculator. Mario runs, jumps and falls exactly as on the Nintendo 64, the enemies think as they did, Lakitu films it all, and the dialogs, the HUD, the pause menu and the transitions are the game's.
  • The game's own pictures: every texture is the game's, taken from it and checked byte for byte against the ROM's: Mario's face and cap, the enemies, the walls and floors of each course, the castle and its paintings, the skies, the HUD and the fonts, Peach's letter.
  • Its own screens: the title with the 3D SUPER MARIO 64 logo zooming in, Mario's head, the file select with its four files, and the act select with its wooden COURSE sign and its stars.
  • Mario's whole moveset: walk, run, crouch and crawl; the double and triple jump, the backflip, the side somersault, the long jump and the wall kick; punches, kicks, the dive, the slide kick and the ground pound; climbing poles and trees, hanging from ledges and fences, swimming, carrying and throwing.
  • Peach's castle: her letter, Lakitu's flight over the grounds and the warp pipe; the grounds with the moat, the bridge and the trees; the courtyard and its Boos; the castle's first floor with its lobby, its star doors (1, 3 and 8 stars), its paintings and the doors that open with stars.
  • Five courses and their stars: Bob-omb Battlefield, Whomp's Fortress, Jolly Roger Bay, Cool, Cool Mountain and Big Boo's Haunt: their six missions each and the 100-coin stars, 33 of their 35 stars to get (Mario Wings to the Sky and Eye to Eye in the Secret Room need the Wing Cap and the Vanish Cap, whose switches are in levels left out), with the act select, King Bob-omb, Koopa the Quick, the Whomp King, the sunken ship and its eel, the penguins and their race, the Big Boo and the mad piano.
  • In 3D, as on the N64: the levels, models and animations are the game's, drawn by NumPlay's 3D renderer with perspective-correct textures smoothed as the N64 filters them, the game's skyboxes, fog, lights and shadows. The game thinks 30 times a second, as on the N64, so Mario moves at his own speed: when a picture takes too long to draw, the next ones are skipped, not the game slowed.
  • A steady picture: the calculator's screen refreshes itself a column at a time, about 40 times a second. The game draws its picture in columns too, and sends each one just after the refresh has passed it, so the screen shows whole pictures, never parts of two.
  • Full or half resolution: 320 x 240, or 160 x 120 with each pixel doubled, which is faster and smoother. Each calculator starts with its own (full on the N0120, half on the N0110 and N0115), and the pause menu's options change it.
  • Saved like on the cartridge: four files, as on the N64. Collect a star and it's saved, as the N64's save chip did. Your stars are also copied into sm64_saves.py, so installing the app again doesn't erase them. The options are kept with them.
The title
The title
Mario's head
Mario's head
The file select
The file select
Peach's letter
Dear Mario: Peach's letter
Peach's castle and its grounds
Peach's castle
The painting of Bob-omb Battlefield
The way into Bob-omb Battlefield
The act select
Choosing a star
Bob-omb Battlefield
Bob-omb Battlefield
Whomp's Fortress
Whomp's Fortress
Jolly Roger Bay
Jolly Roger Bay
Cool, Cool Mountain
Cool, Cool Mountain
Big Boo's Haunt
Big Boo's Haunt
Back in the castle with a star
A star got
The pause menu's options: resolution, screen refresh, save and quit
The options and the way out, in the pause menu

How to install

  1. Download SuperMario64.nwa.
  2. Plug your NumWorks calculator into your computer and open my.numworks.com/apps in Google Chrome or Microsoft Edge.
  3. Drop the file there and follow the steps. Super Mario 64 takes almost all the room for apps, so install it on its own.

It runs on the N0110, N0115 and N0120 with Epsilon 23.2 or newer.

How to play

Press OK (or Start, ⌫) on the title and on Mario's head, then choose a file with the arrows and OK. A new file shows the keys first, then Peach's letter. Get into the castle and jump into a painting to enter its course, choose a star to go for, and get it. Stars open the castle's star doors. Lakitu films you: turn him around with 4 and 6, and bring him closer or further with 8 and 2. ⌫ pauses: in a course, the pause menu can take you back to the castle. In the pause menu, Shift opens the options and the way out. Up and down choose a line, left, right or OK change it:

  • RESOLUTION: FULL (320 x 240) or HALF, FASTER (160 x 120, each pixel doubled: smoother, less sharp).
  • SCREEN REFRESH: LEFT TO RIGHT, the way the calculator's screen refreshes itself. If the picture tears on yours, try RIGHT TO LEFT. OFF sends the picture as soon as it is drawn, without waiting for the screen.
  • SAVE & QUIT saves and quits, CONTINUE (or Back) goes back to the pause menu.

Controls

Key What it does
Arrows Move (the control stick)
alpha (held) Walk and tiptoe instead of running
OK or EXE A: jump, swim, read signs and talk
Back B: punch, kick, dive, pick up and throw
shift Z: crouch, slide, ground pound (with jumps: long jump, backflip)
4 / 6 Turn the camera left / right (C◀ / C▶)
8 / 2 Camera closer / further (C▲ / C▼)
0 R: Mario's camera or Lakitu's
⌫ Start: pause
Home Save and quit

Shift shows these keys on Mario's head and on the file select, and a new game starts with them.

Good to know

  • Five courses of fifteen: the app space holds the castle's grounds, courtyard and first floor and the five courses whose doors are there. The basement and the floors above, behind Bowser's two keys, don't fit: neither do Bowser's courses and fights, the secret levels (the Princess's Secret Slide, the Tower of the Wing Cap, the Secret Aquarium and the cap levels), Lethal Lava Land and the courses after it. Their ways in do nothing: the slide's hole and the aquarium's wall take you nowhere, nor does the sunlight in the lobby, and the trapdoor behind the 8-star door stays shut.
  • Four save files, as on the N64: collecting a star saves, as in the game, and Home or SAVE & QUIT saves the file and quits (the coins of a course not finished are lost, as when you switched an N64 off). Copying and erasing files is not there.
  • No sound: the calculator has no speaker.
  • Fewer things at once: the N64 kept up to 240 objects moving; the calculator's RAM has room for about 147. In the busiest places, a bubble or a sparkle may not appear.
  • On the N0110 and N0115 (216 MHz, the N0120 has 550), the game draws at half the resolution to keep its pace, unless you choose full in the options.
  • Waiting for the screen: a picture waits for the screen's refresh to pass before it goes, a few milliseconds on average, so the game shows a few pictures a second fewer than it could draw. With SCREEN REFRESH OFF it shows them all, torn.
  • Mario's head stays still: after the title, the N64 moved his face with its own engine (goddard), which doesn't fit. Here it is goddard's model as it rests, turning a little.
  • Smaller pictures: the skies are kept at half their size, and the textures that lose little at half their size are kept so; the textures have at most 16 colours, or 256 for faces, paintings and the screens.

How it's made

The game's code is the n64decomp team's decompilation of Super Mario 64: thousands of functions rewritten in C that compile to the same game. It runs on the calculator almost unchanged (its few changes are marked (calculator)); the N64's graphics chip, its memory and its cartridge are what the port (src/port) replaces.

The calculator gives an app about 130 KB of RAM, and the N64 had 4 MB. So the levels, models, animations and collision never come to RAM: tools/pack.py and tools/port.py turn the decompilation's data into the calculator's own formats, read in place from flash: meshes with 4-bit textures, collision surfaces sorted into the game's cells ahead of time, animations kept one byte a key frame. The game's display lists for the HUD, the dialogs and the menus are played by src/port/gfx.c, and the 3D is drawn by NumPlay's 3D renderer (src/render.c) thirteen columns at a time, with no frame buffer. Each band of columns goes to the screen once the screen's own refresh has passed it and before the next one comes to it (the way NumPlay's Doom does it): the renderer times the refreshes with the calculator's vertical blank. The behaviors of objects no level here has are left out (src/port/gen/behavior_data.c).

make builds output/sm64.nwa (needs arm-none-eabi-gcc and Node.js for nwlink). make host builds the game for a computer, make test plays it there with the sanitizers on (tests/check.py), and make media takes the pictures on this page. python3 tools/fetch.py build/ref downloads the decompilation, python3 tools/assets.py <folder> gets the game's textures, and make data REF=build/ref/decomp ASSETS=<folder> makes the game's data again (src/data.bin and src/port/gen).

The pictures

The decompilation has the game's code, models, levels, animations and text, but not its pictures, which are in the ROM. tools/assets.py takes them from an extraction of the US game's shared on the Internet Archive and keeps each one only if its bytes, as the N64 reads them, are the ROM's: tools/rom_textures.txt lists their hashes. Nothing here is painted:

  • Textures: each model's and level's own, packed by tools/pack.py with 16 colours (or up to 256 when that loses too much).
  • Skies: the game's skyboxes, drawn where the game places them as Lakitu turns and looks up or down.
  • The screens: the HUD, the fonts, the power meter, Peach's letter, the title's logo (its 3D model), the file select's buttons and hand, and the act select's wooden sign are the game's models and textures, drawn by the game's own code or as it does.
  • Mario's head and the icon: goddard's model of Mario's head, from the decompilation (tools/goddard.py); the icon is that head in front of the castle's sky (tools/icon.py).

Credits

Super Mario 64 is Nintendo's game (1996). Not affiliated with Nintendo.

  • n64decomp/sm64, the decompilation of Super Mario 64 by the n64decomp team: the game's code and data in decomp/, and the data tools/pack.py and tools/port.py read.
  • The textures are Nintendo's, from the game itself: taken from "SM64 US Assets" on the Internet Archive, an extraction of the US ROM, and checked against the texture hashes teamsalta/sm64nx lists for that ROM.

Made by Mason Chen, the maker of NumPlay.

License

The port's own code (in src/, the renderer, the tools in tools/, common/ and the tests) is under the MIT License: see the LICENSE file. Copyright (c) 2026 Mason Chen.

The code and data in decomp/ come from the n64decomp/sm64 project, and so do the models, levels, animations and text packed into src/data.bin and src/port/gen/. They are not covered by the MIT License: the n64decomp team placed their work under CC0 (decomp/LICENSE.md), but what they decompiled is Nintendo's game, and it stays Nintendo's. The textures in src/data.bin and the icon are Nintendo's too.

About

Super Mario 64 on the NumWorks calculator (N0110, N0115, N0120): the game's own code from the n64decomp decompilation, in 3D. By the maker of NumPlay.

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages