NativeFunctions

Constructors

Link copied to clipboard
constructor(base: SimpleShasambly)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun bdup()

Duplicate the top byte on the stack

Link copied to clipboard
fun bswap(first: UByte, second: UByte)

Swap two bytes on the stack (the indexes are given as arguments, for example 0 means the top byte, on the stack, 1 the second...)

Link copied to clipboard

Declare a global with a given size (the size is the first integer on top of the stack, it will be removed) (leaves the global address on top of the stack)

fun declareGlobal(csize: Int)

Declare a global with a given size (leaves the global address on top of the stack)

Link copied to clipboard

Free a global with a given size The address is the first integer on the stack and will be removed The size is the second integer on the stack and will also be removed

fun freeGlobal(csize: Int)

Free a global with a given size The globals address is the first integer on the stack and will be removed

Link copied to clipboard
fun idup()

Duplicate the first integer on the stack

Link copied to clipboard
fun iswap(first: UByte, second: UByte)

Swap two integers on the stack (the indexes are given as arguments, for example 0 means the top integer, on the stack, 2 the second...)

Link copied to clipboard
fun ldup()

Duplicate the first long on the stack

Link copied to clipboard
fun lswap(first: UByte, second: UByte)

Swap two longs on the stack (the indexes are given as arguments, for example 0 means the top integer, on the stack, 2 the second...)

Link copied to clipboard
fun printByte()

Print and remove the first byte from the stack

Link copied to clipboard

Print and remove the first double from the stack

Link copied to clipboard

Print and remove the first float from the stack

Link copied to clipboard
fun printInt()

Print and remove the first int from the stack

Link copied to clipboard

Print a line separator character to the console

Link copied to clipboard
fun printLong()

Print and remove the first long from the stack

Link copied to clipboard

Print and remove the first short from the stack

Link copied to clipboard
fun printUtf8()

Print the first byte as a utf8 character to the console

Link copied to clipboard
fun sdup()

Duplicate the top short on the stack

Link copied to clipboard
fun sswap(first: UByte, second: UByte)

Swap two shorts on the stack (the indexes are given as arguments, for example 0 means the top short, on the stack, 2 the second...)