UFB Wiki

The UFB (Unsafe Four Bit) Programming Language -- FAST | EASY | VERBOSE -- Built With Rust

View on GitHub


MATH


Here, Mathematics becomes Math, Mat, Ma, or maybe M... yummy.

We're not going to solve for the total area of one dispersed floating field of magnets here.

We can always start with the basics... and dive into whatever is next.

// It's a recurring theme...
// all commands that can, will always place the output to the first given memory index.

// $038 + $250 | Addition
add 38 250

// $038 - $250 | Subtraction
sub 38 250

// $038 * $250 | Multiplication
mul 38 250

// $038 / $250 | Division
sub 38 250

// $038 % $250 | Modulus
mod 38 250

// $038 / $250 (Take away the decimal numbers)| Reverse Modulus
rmod 38 250


⏪️