Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
🚀 Try FlipJump in your browser: fj.tomhe.app
FlipJump
FlipJump
  • Getting Started
    • Installation
    • Hello, World!
    • Anatomy of a FlipJump program
  • Language Reference
    • The FlipJump Instruction
    • Lexical Structure
    • Expressions
    • Macros
    • Namespaces
    • Directives
    • Types and built-in names
    • Input / Output
    • Complexity notation
  • Standard Library
    • bit/casting.fj
    • bit/cond_jumps.fj
    • bit/div.fj
    • bit/input.fj
    • bit/logics.fj
    • bit/math.fj
    • bit/memory.fj
    • bit/mul.fj
    • bit/output.fj
    • bit/pointers.fj
    • bit/shifts.fj
    • casting.fj
    • hex/cond_jumps.fj
    • hex/div.fj
    • hex/input.fj
    • hex/logics.fj
    • hex/math.fj
    • hex/math_basic.fj
    • hex/memory.fj
    • hex/mul.fj
    • hex/output.fj
    • hex/pointers/basic_pointers.fj
    • hex/pointers/pointer_arithmetics.fj
    • hex/pointers/read_pointers.fj
    • hex/pointers/stack.fj
    • hex/pointers/write_pointers.fj
    • hex/pointers/xor_from_pointer.fj
    • hex/pointers/xor_to_pointer.fj
    • hex/shifts.fj
    • hex/tables_init.fj
    • ptrlib.fj
    • runlib.fj
  • Examples
    • Hello World
    • Prime Sieve
    • Calculator
    • Quine
  • Companion tools
    • FlipJump IDE — fj.tomhe.app
    • c2fj — C to FlipJump
    • bf2fj — Brainfuck to FlipJump
Back to top
View this page
Edit this page

hex/mul.fj¶

View source on GitHub

Macros¶

hex¶

  • hex.add_mul/2 — .mul.add_carry_dst : res += x * .mul.dst + .mul.add_carry_dst

  • hex.add_mul/4 — res[n] += a[n] * b[1]

  • hex.mul — for n==b/2: n^2(5.5@+20)

hex.mul¶

  • hex.mul.clear_carry

  • hex.mul.init — This is where the add_mul “truth” tables are.

Next
hex/output.fj
Previous
hex/memory.fj
Copyright © 2026, Tom Herman
Made with Sphinx and @pradyunsg's Furo
On this page
  • hex/mul.fj
    • Macros
      • hex
      • hex.mul