The functions provide the standard mathematical and logical operations. Add adds two to 32 integers and returns their sum.
Sub subtracts two numbers and returns their difference.
Div divides two integers and returns their integer quotient. If the second argument to div or mod is zero, these functions return 0 and generate a run time error. Mod divides two integers and returns their integer remainder. Exp performs integer exponentiation, raising the first integer to the power of the second. Neg negates its argument.