A downloadable tool

Download NowName your own price

This is a hexidecimal postfix calculator written as an entry to MinicubeJam04.

To run the calculator you'll need the Minicube64 emulator. You can then run the calculator with minicube64 minicalc64.bin.

This calculator was heavily influenced by cccc, a calculator for the varvara computer written in uxntal.

What is Postfix?

Postfix is also known as Reverse Polish Notation (RPN), and is a different approach to entering calculations than most people are used to (which is called "infix"). This site likely does a much better job explaining things than I would.

In this calculator you type 16bit values, push them onto the stack, and then use operations (add, subtract, etc) to manipulate the values on the stack. Results that exceed 16bits will be truncated. Negative values are handled using two's complement.

To perform 1+2 (or in postfix: 1 2 +), you would type "1", push it to the stack (^ or START), type "2", push (^ or START), then add them together (+). This will result on a value of "3" on the stack.

Basic Controls

  • Arrows/Dpad: Move cursor
  • A [Z]: Press highlighted button
  • B [X]: Delete last digit entered, or pop last item on stack if no digits remain
  • Start [Enter]: Push entry to stack
  • C+Start [Enter]: Clear the stack


Starting from the bottom left, moving left-to-right and top-to-bottom, the buttons on this calculator are:

  • 0-F: The 16 hexidecimal digits

  • Push: Push the current entry to the stack

  • Pop: Pop the last entry off the stack

  • Swap: Swap the last two entries on the stack

  • Duplicate: Duplicate the last entry on the stack

  • Add: Add last two entries on the stack

  • Subtract: Subtract last stack entry from second last entry

  • Multiply: Multiply last two stack entries

  • Divide: Divide second last stack entry by the last stack entry

  • AND: Logical AND last two stack entries

  • OR: Logical OR last two stack entries

  • Shift Left: Shift last stack entry left one bit

  • Shift Right: Shift last stack entry right one bit

Shortcuts (instead of using the specific buttons)

  • C+A [Z]: Swap

  • C+B [X]: Duplicate

  • C+Up: Add

  • C+Down: Subtract

  • C+Left: Multiply

  • C+Right: Divide

  • Start [Enter]+Up: Logical AND

  • Start [Enter]+Down: Logical OR

  • Start [Enter]+Left: Shift left

  • Start [Enter]+Right: Shift right


Download NowName your own price

Click download now to get access to the following files:

minicalc64.bin 3 kB


Log in with itch.io to leave a comment.

I recommend putting up the tag 'Minimalist" on this. Aside from that  - love the simplicity of such cute software :)

Good idea, thanks!