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
    • runlib.fj
    • casting.fj
    • ptrlib.fj
    • bit/memory.fj
    • bit/logics.fj
    • bit/cond_jumps.fj
    • bit/shifts.fj
    • bit/math.fj
    • bit/input.fj
    • bit/output.fj
    • bit/casting.fj
    • bit/pointers.fj
    • bit/mul.fj
    • bit/div.fj
    • hex/memory.fj
    • hex/logics.fj
    • hex/math.fj
    • hex/math_basic.fj
    • hex/shifts.fj
    • hex/cond_jumps.fj
    • hex/tables_init.fj
    • hex/input.fj
    • hex/output.fj
    • hex/mul.fj
    • hex/div.fj
    • hex/pointers/basic_pointers.fj
    • hex/pointers/xor_to_pointer.fj
    • hex/pointers/xor_from_pointer.fj
    • hex/pointers/read_pointers.fj
    • hex/pointers/write_pointers.fj
    • hex/pointers/stack.fj
    • hex/pointers/pointer_arithmetics.fj
  • Examples
    • Hello World
    • Prime Sieve
    • Calculator
    • Quine
  • Companion tools and resources
    • FlipJump IDE — fj.tomhe.app
    • c2fj — C to FlipJump
    • bf2fj — Brainfuck to FlipJump
Back to top
View this page
Edit this page

bit.if1 (arity 2)¶

if x == 1 jump to l1
x is a bit, l1 is an address.

Signature¶

def if1 x, l1 @ end { ... }

Defined in bit/cond_jumps.fj — lines 29–32 (view on GitHub).

Complexity¶

  • Time: @+2

  • Space: @+2

See the complexity glossary for what @, w, dw, dbit, n mean.

Depends on¶

  • bit.if/3

Used by¶

  • bit.and/2

  • bit.cmp/5

  • bit.div10.cmp_sub_10

  • bit.print_dec_uint.div10_step

  • bit.print_hex_uint.print_digit

  • bit.print_hex_uint

  • hex.print_uint.print_digit

  • hex.print_uint

Copyright © 2026, Tom Herman
Made with Sphinx and @pradyunsg's Furo
On this page
  • bit.if1 (arity 2)
    • Signature
    • Complexity
    • Depends on
    • Used by