slashbinbash.de / SASM Built-In Modules

Assert

assert.false
assert.true

Bool

bool.not
bool.and
bool.or
bool.xor

Debug

debug.printstack

IO

io.print
io.println
io.readargs
io.writeargs

Lang

Comparisons

lang.cmp   compare objects
lang.test

lang.eq    test equality
lang.ge    greater than or equal
lang.gt    greater than
lang.le    less than or equal
lang.lt    less than
lang.ne    not equal

Branching

lang.jmp   jump

lang.je    jump if equal
lang.jg    jump if greater than
lang.jge   jump if greater than or equal
lang.jl    jump if less than
lang.jle   jump if less than or equal
lang.jne   jump if not equal
lang.jng   jump if not greater than
lang.jnge  jump if not greater than or equal
lang.jnl   jump if less than
lang.jnle  jump if less than or equal

lang.jf    jump if false
lang.jt    jump if true

Other

lang.call
lang.mov
lang.pop
lang.resolve

List

list.append
list.filter
list.foreach
list.group
list.head
list.init
list.isempty
list.last
list.map
list.merge
list.pack
list.reduce
list.reverse
list.rotate
list.size
list.sort
list.split
list.tail
list.unpack
list.zip
list.zipwith

Math

math.abs
math.add
math.dec
math.div
math.inc
math.mod
math.mul
math.pow
math.sqrt
math.sub

Stack

stack.dup
stack.size
stack.swap

String

str.concat
str.length
str.split
str.substring
str.tolower
str.toupper

Type

type.isbool
type.isint
type.islabel
type.islist
type.issame
type.isstr
type.tostr