Skip to content

Basic Arithmetic

These instructions handle standard mathematical calculations, basic scaling, and direct variable modifications.

OpcodeArgumentsOperands (stack)Description
add / subtypeval1, val2Addition or Subtraction
mul / divtypeval1, val2Multiplication or Division
modtypeval1, val2Modulo (Remainder)
negtypevalNegation (changes sign: 5 to -5, or -5 to 5)
inc / decname, type-Directly add/remove variable contents
powtypeval1, val2General power operation (x^y)
powitypeval1, val2Power with integer exponent
powftypeval1, val2Power with floating-point exponent