Constructors

Link copied to clipboard
constructor(generator: SimpleShasamblyGeneratorFunction)

Properties

Link copied to clipboard
open override val base: SimpleShasamblyGenerator
Link copied to clipboard
open override val natives: NativeFunctions
Link copied to clipboard
open override val size: Int
Link copied to clipboard
val sizes: List<Int>

The sizes of all the opcodes (If a #sizesCache is given return it, if not generate all the sizes using map)

Functions

Link copied to clipboard
open override fun add(element: ShasamblyOpcode): Boolean
open override fun add(index: Int, element: ShasamblyOpcode)
Link copied to clipboard
open override fun addAll(elements: Collection<ShasamblyOpcode>): Boolean
open override fun addAll(index: Int, elements: Collection<ShasamblyOpcode>): Boolean
Link copied to clipboard
open fun b_abs()
Link copied to clipboard
open fun b_get_global(address: Int)
Link copied to clipboard
Link copied to clipboard
open override fun b_get_local(address: Int)
Link copied to clipboard
open fun b_neg()
Link copied to clipboard
open fun b_store_global(address: Int)
Link copied to clipboard
Link copied to clipboard
open override fun b_store_local(address: Int)
Link copied to clipboard
open fun babs()
Link copied to clipboard
open fun badd(b: Byte)
open override fun badd()
Link copied to clipboard
open fun bbigger(b: Byte)
open override fun bbigger()
Link copied to clipboard
open fun bbiggereq(b: Byte)
open override fun bbiggereq()
Link copied to clipboard
open fun bdiv(b: Byte)
open override fun bdiv()
Link copied to clipboard
open fun beq(b: Byte)
open override fun beq()
Link copied to clipboard
open fun bmod(b: Byte)
open override fun bmod()
Link copied to clipboard
open fun bmul(b: Byte)
open override fun bmul()
Link copied to clipboard
open fun bneg()
Link copied to clipboard
open override fun bnot()
Link copied to clipboard
open fun booleanNot()
Link copied to clipboard
open fun boolNot()
Link copied to clipboard
open override fun bpush(boolean: Boolean)
open override fun bpush(vararg booleans: Boolean)
open override fun bpush(byte: Byte)
open override fun bpush(vararg bytes: Byte)
Link copied to clipboard
open fun bsmaller(b: Byte)
open override fun bsmaller()
Link copied to clipboard
open fun bsmallereq(b: Byte)
open override fun bsmallereq()
Link copied to clipboard
open fun bsub(b: Byte)
open override fun bsub()
Link copied to clipboard
open override fun byteAdd()
Link copied to clipboard
open override fun byteBigger()
Link copied to clipboard
open override fun byteBiggerEq()
Link copied to clipboard
open override fun byteBiggerEquals()
Link copied to clipboard
open override fun byteDiv()
Link copied to clipboard
open override fun byteEq()
Link copied to clipboard
open override fun byteEquals()
Link copied to clipboard
open override fun byteMod()
Link copied to clipboard
open override fun byteMul()
Link copied to clipboard
open override fun byteSmaller()
Link copied to clipboard
open override fun byteSmallerEq()
Link copied to clipboard
open override fun byteSmallerEquals()
Link copied to clipboard
open override fun byteSub()
Link copied to clipboard
open fun cast(from: UInt, to: UInt)
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun contains(element: ShasamblyOpcode): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<ShasamblyOpcode>): Boolean
Link copied to clipboard

Create a LocalByteArrayStructure A local byte array. It stores the size at the start of it, so you can always get the size using LocalByteArrayStructure.getSize This is the advised type of local byte array over StaticallySizedLocalByteArrayStructure The size is the first integer on the stack

Create a LocalByteArrayStructure A local byte array. It stores the size at the start of it, so you can always get the size using LocalByteArrayStructure.getSize This is the advised type of local byte array over StaticallySizedLocalByteArrayStructure

Link copied to clipboard

Create a LocalLongArrayStructure A local long array. It stores the size at the start of it, so you can always get the size using LocalLongArrayStructure.getSize This is the advised type of local long array over StaticallySizedLocalLongArrayStructure The size is the first integer on the stack

Create a LocalLongArrayStructure A local long array. It stores the size at the start of it, so you can always get the size using LocalLongArrayStructure.getSize This is the advised type of local long array over StaticallySizedLocalLongArrayStructure

Link copied to clipboard

Create a LocalIntArrayStructure A local int array. It stores the size at the start of it, so you can always get the size using LocalIntArrayStructure.getSize This is the advised type of local int array over StaticallySizedLocalIntArrayStructure The size is the first integer on the stack

Create a LocalIntArrayStructure A local int array. It stores the size at the start of it, so you can always get the size using LocalIntArrayStructure.getSize This is the advised type of local int array over StaticallySizedLocalIntArrayStructure

Link copied to clipboard

Create a LocalIntArrayStructure A local int array. It stores the size at the start of it, so you can always get the size using LocalIntArrayStructure.getSize This is the advised type of local int array over StaticallySizedLocalIntArrayStructure The size is the first integer on the stack

Create a LocalIntArrayStructure A local int array. It stores the size at the start of it, so you can always get the size using LocalIntArrayStructure.getSize This is the advised type of local int array over StaticallySizedLocalIntArrayStructure

Link copied to clipboard

Create a LocalIntArrayStructure A local int array. It stores the size at the start of it, so you can always get the size using LocalIntArrayStructure.getSize This is the advised type of local int array over StaticallySizedLocalIntArrayStructure The size is the first integer on the stack

Create a LocalIntArrayStructure A local int array. It stores the size at the start of it, so you can always get the size using LocalIntArrayStructure.getSize This is the advised type of local int array over StaticallySizedLocalIntArrayStructure

Link copied to clipboard

Create a LocalLongArrayStructure A local long array. It stores the size at the start of it, so you can always get the size using LocalLongArrayStructure.getSize This is the advised type of local long array over StaticallySizedLocalLongArrayStructure The size is the first integer on the stack

Create a LocalLongArrayStructure A local long array. It stores the size at the start of it, so you can always get the size using LocalLongArrayStructure.getSize This is the advised type of local long array over StaticallySizedLocalLongArrayStructure

Link copied to clipboard

Create a LocalShortArrayStructure A local short array. It stores the size at the start of it, so you can always get the size using LocalShortArrayStructure.getSize This is the advised type of local short array over StaticallySizedLocalShortArrayStructure The size is the first integer on the stack

Create a LocalShortArrayStructure A local short array. It stores the size at the start of it, so you can always get the size using LocalShortArrayStructure.getSize This is the advised type of local short array over StaticallySizedLocalShortArrayStructure

Link copied to clipboard
Link copied to clipboard

Create a StaticallySizedLocalByteArrayStructure A byte array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalByteArrayStructure

Link copied to clipboard

Create a StaticallySizedLocalLongArrayStructure A int array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalLongArrayStructure

Create a StaticallySizedLocalLongArrayStructure A long array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalLongArrayStructure

Link copied to clipboard

Create a StaticallySizedLocalIntArrayStructure A int array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalIntArrayStructure

Link copied to clipboard

Create a StaticallySizedLocalIntArrayStructure A int array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalIntArrayStructure

Link copied to clipboard

Create a StaticallySizedLocalIntArrayStructure A int array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalIntArrayStructure

Link copied to clipboard

Create a StaticallySizedLocalLongArrayStructure A int array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalLongArrayStructure

Create a StaticallySizedLocalLongArrayStructure A long array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalLongArrayStructure

Link copied to clipboard

Create a StaticallySizedLocalShortArrayStructure A short array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalShortArrayStructure

Link copied to clipboard
open fun d_abs()
Link copied to clipboard
open override fun d_get_local(address: Int)
Link copied to clipboard
open fun d_neg()
Link copied to clipboard
open override fun d_store_local(address: Int)
Link copied to clipboard
open fun dabs()
Link copied to clipboard
open fun dadd(d: Double)
open override fun dadd()
Link copied to clipboard
open fun dbigger(d: Double)
open override fun dbigger()
Link copied to clipboard
open fun dbiggereq(d: Double)
open override fun dbiggereq()
Link copied to clipboard
open fun ddiv(d: Double)
open override fun ddiv()
Link copied to clipboard
fun SimpleShasambly.declareRoutine(argumentCount: Int, stackSize: Int = 100): CallableRoutine
Link copied to clipboard
open override fun decrStack()
Link copied to clipboard
open fun deq(d: Double)
open override fun deq()
Link copied to clipboard
open fun dmod(d: Double)
open override fun dmod()
Link copied to clipboard
open fun dmul(d: Double)
open override fun dmul()
Link copied to clipboard
open fun dneg()
Link copied to clipboard
open override fun doubleAdd()
Link copied to clipboard
open override fun doubleBigger()
Link copied to clipboard
open override fun doubleBiggerEq()
Link copied to clipboard
open override fun doubleBiggerEquals()
Link copied to clipboard
open override fun doubleDiv()
Link copied to clipboard
open override fun doubleEq()
Link copied to clipboard
open override fun doubleEquals()
Link copied to clipboard
open override fun doubleMod()
Link copied to clipboard
open override fun doubleMul()
Link copied to clipboard
open override fun doubleSmaller()
Link copied to clipboard
open override fun doubleSmallerEq()
Link copied to clipboard
open override fun doubleSmallerEquals()
Link copied to clipboard
open override fun doubleSub()
Link copied to clipboard
open override fun dpush(double: Double)
open override fun dpush(vararg doubles: Double)
Link copied to clipboard
open fun dsmaller(d: Double)
open override fun dsmaller()
Link copied to clipboard
open fun dsmallereq(d: Double)
open override fun dsmallereq()
Link copied to clipboard
open fun dsub(d: Double)
open override fun dsub()
Link copied to clipboard
open fun f_abs()
Link copied to clipboard
open override fun f_get_local(address: Int)
Link copied to clipboard
open fun f_neg()
Link copied to clipboard
open override fun f_store_local(address: Int)
Link copied to clipboard
open fun fabs()
Link copied to clipboard
open fun fadd(f: Float)
open override fun fadd()
Link copied to clipboard
open fun fbigger(f: Float)
open override fun fbigger()
Link copied to clipboard
open fun fbiggereq(f: Float)
open override fun fbiggereq()
Link copied to clipboard
open fun fdiv(f: Float)
open override fun fdiv()
Link copied to clipboard
open fun feq(f: Float)
open override fun feq()
Link copied to clipboard
open override fun floatAdd()
Link copied to clipboard
open override fun floatBigger()
Link copied to clipboard
open override fun floatBiggerEq()
Link copied to clipboard
open override fun floatBiggerEquals()
Link copied to clipboard
open override fun floatDiv()
Link copied to clipboard
open override fun floatEq()
Link copied to clipboard
open override fun floatEquals()
Link copied to clipboard
open override fun floatMod()
Link copied to clipboard
open override fun floatMul()
Link copied to clipboard
open override fun floatSmaller()
Link copied to clipboard
open override fun floatSmallerEq()
Link copied to clipboard
open override fun floatSmallerEquals()
Link copied to clipboard
open override fun floatSub()
Link copied to clipboard
open fun fmod(f: Float)
open override fun fmod()
Link copied to clipboard
open fun fmul(f: Float)
open override fun fmul()
Link copied to clipboard
open fun fneg()
Link copied to clipboard
open override fun fpush(float: Float)
open override fun fpush(vararg floats: Float)
Link copied to clipboard
open fun fsmaller(f: Float)
open override fun fsmaller()
Link copied to clipboard
open fun fsmallereq(f: Float)
open override fun fsmallereq()
Link copied to clipboard
open fun fsub(f: Float)
open override fun fsub()
Link copied to clipboard

Generates all content Opcodes into a single ByteArray

Link copied to clipboard
open operator override fun get(index: Int): ShasamblyOpcode
Link copied to clipboard
open override fun getLocalBoolean(address: Int)
Link copied to clipboard
open override fun getLocalByte(address: Int)
Link copied to clipboard
open override fun getLocalDouble(address: Int)
Link copied to clipboard
open override fun getLocalFloat(address: Int)
Link copied to clipboard
open override fun getLocalInt(address: Int)
Link copied to clipboard
open override fun getLocalLong(address: Int)
Link copied to clipboard
open override fun getLocalShort(address: Int)
Link copied to clipboard
open override fun globAddr(address: Int)
Link copied to clipboard
open fun globalAddress(address: Int)
Link copied to clipboard
open fun i_abs()
Link copied to clipboard
open fun i_get_global(address: Int)
Link copied to clipboard
Link copied to clipboard
open override fun i_get_local(address: Int)
Link copied to clipboard
open fun i_neg()
Link copied to clipboard
open fun i_store_global(address: Int)
Link copied to clipboard
Link copied to clipboard
open override fun i_store_local(address: Int)
Link copied to clipboard
open fun iabs()
Link copied to clipboard
open fun iadd(i: Int)
open override fun iadd()
Link copied to clipboard
open fun ibigger(i: Int)
open override fun ibigger()
Link copied to clipboard
open fun ibiggereq(i: Int)
open override fun ibiggereq()
Link copied to clipboard
open fun idiv(i: Int)
open override fun idiv()
Link copied to clipboard
open fun ieq(i: Int)
open override fun ieq()
Link copied to clipboard
open fun imod(i: Int)
open override fun imod()
Link copied to clipboard
open fun imul(i: Int)
open override fun imul()
Link copied to clipboard
open override fun incrStack(size: Int)
Link copied to clipboard
open override fun indexOf(element: ShasamblyOpcode): Int
Link copied to clipboard
open fun ineg()
Link copied to clipboard
open override fun intAdd()
Link copied to clipboard
open override fun intBigger()
Link copied to clipboard
open override fun intBiggerEq()
Link copied to clipboard
open override fun intBiggerEquals()
Link copied to clipboard
open override fun intDiv()
Link copied to clipboard
open override fun intEq()
Link copied to clipboard
open override fun intEquals()
Link copied to clipboard
open override fun intMod()
Link copied to clipboard
open override fun intMul()
Link copied to clipboard
open override fun intSmaller()
Link copied to clipboard
open override fun intSmallerEq()
Link copied to clipboard
open override fun intSmallerEquals()
Link copied to clipboard
open override fun intSub()
Link copied to clipboard
Link copied to clipboard
open override fun invokeNative(address: Short, bytes: ByteArray)
Link copied to clipboard
open override fun ipush(int: Int)
open override fun ipush(vararg ints: Int)
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open fun ismaller(i: Int)
open override fun ismaller()
Link copied to clipboard
open fun ismallereq(i: Int)
open override fun ismallereq()
Link copied to clipboard
open fun isub(i: Int)
open override fun isub()
Link copied to clipboard
open operator override fun iterator(): MutableIterator<ShasamblyOpcode>
Link copied to clipboard
open override fun jumpDynamic()
Link copied to clipboard
open override fun jumpIf(target: Int)
Link copied to clipboard
open override fun jumpIfTo(target: Int)
Link copied to clipboard
open override fun jumpIfToRelative(target: Int)
Link copied to clipboard
open override fun jumpStatic(target: Int)
Link copied to clipboard
open override fun jumpStaticTo(target: Int)
Link copied to clipboard
open override fun jumpStaticToRelative(target: Int)
Link copied to clipboard
open fun l_abs()
Link copied to clipboard
open fun l_get_global(address: Int)
Link copied to clipboard
Link copied to clipboard
open override fun l_get_local(address: Int)
Link copied to clipboard
open fun l_neg()
Link copied to clipboard
open fun l_store_global(address: Int)
Link copied to clipboard
Link copied to clipboard
open override fun l_store_local(address: Int)
Link copied to clipboard
open fun labs()
Link copied to clipboard
open fun ladd(l: Long)
open override fun ladd()
Link copied to clipboard
open override fun lastIndexOf(element: ShasamblyOpcode): Int
Link copied to clipboard
open override fun lateinit(size: Int): (ShasamblyOpcode) -> Unit
Link copied to clipboard
open fun lbigger(l: Long)
open override fun lbigger()
Link copied to clipboard
open fun lbiggereq(l: Long)
open override fun lbiggereq()
Link copied to clipboard
open fun ldiv(l: Long)
open override fun ldiv()
Link copied to clipboard
open fun leq(l: Long)
open override fun leq()
Link copied to clipboard
Link copied to clipboard
open fun lmod(l: Long)
open override fun lmod()
Link copied to clipboard
open fun lmul(l: Long)
open override fun lmul()
Link copied to clipboard
open fun lneg()
Link copied to clipboard
open override fun longAdd()
Link copied to clipboard
open override fun longBigger()
Link copied to clipboard
open override fun longBiggerEq()
Link copied to clipboard
open override fun longBiggerEquals()
Link copied to clipboard
open override fun longDiv()
Link copied to clipboard
open override fun longEq()
Link copied to clipboard
open override fun longEquals()
Link copied to clipboard
open override fun longMod()
Link copied to clipboard
open override fun longMul()
Link copied to clipboard
open override fun longSmaller()
Link copied to clipboard
open override fun longSmallerEq()
Link copied to clipboard
open override fun longSmallerEquals()
Link copied to clipboard
open override fun longSub()
Link copied to clipboard
open override fun lpush(long: Long)
open override fun lpush(vararg longs: Long)
Link copied to clipboard
open fun lsmaller(l: Long)
open override fun lsmaller()
Link copied to clipboard
open fun lsmallereq(l: Long)
open override fun lsmallereq()
Link copied to clipboard
open fun lsub(l: Long)
open override fun lsub()
Link copied to clipboard
open override fun opcode(vararg opcodes: ShasamblyOpcode)
Link copied to clipboard
fun positionOfIndex(index: Int): Int

Resolve the position of a given index

Link copied to clipboard
open fun push_rel_addr(relIdx: Int)
Link copied to clipboard
open override fun pushBoolean(boolean: Boolean)
Link copied to clipboard
open override fun pushBooleans(vararg booleans: Boolean)
Link copied to clipboard
open override fun pushByte(byte: Byte)
Link copied to clipboard
open override fun pushBytes(vararg bytes: Byte)
Link copied to clipboard
open override fun pushDouble(double: Double)
Link copied to clipboard
open override fun pushDoubles(vararg doubles: Double)
Link copied to clipboard
open override fun pushFloat(float: Float)
Link copied to clipboard
open override fun pushFloats(vararg floats: Float)
Link copied to clipboard
open override fun pushInt(int: Int)
Link copied to clipboard
open override fun pushInts(vararg ints: Int)
Link copied to clipboard
open override fun pushLong(long: Long)
Link copied to clipboard
open override fun pushLongs(vararg longs: Long)
Link copied to clipboard
open override fun pushShort(short: Short)
Link copied to clipboard
open override fun pushShorts(vararg shorts: Short)
Link copied to clipboard
Link copied to clipboard
open override fun remove(element: ShasamblyOpcode): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<ShasamblyOpcode>): Boolean
Link copied to clipboard
open override fun removeAt(index: Int): ShasamblyOpcode
Link copied to clipboard
open override fun retainAll(elements: Collection<ShasamblyOpcode>): Boolean
Link copied to clipboard
Link copied to clipboard
open fun s_abs()
Link copied to clipboard
open fun s_get_global(address: Int)
Link copied to clipboard
Link copied to clipboard
open override fun s_get_local(address: Int)
Link copied to clipboard
open fun s_neg()
Link copied to clipboard
open fun s_store_global(address: Int)
Link copied to clipboard
Link copied to clipboard
open override fun s_store_local(address: Int)
Link copied to clipboard
open fun sabs()
Link copied to clipboard
open fun sadd(s: Short)
open override fun sadd()
Link copied to clipboard
open fun sbigger(s: Short)
open override fun sbigger()
Link copied to clipboard
open fun sbiggereq(s: Short)
open override fun sbiggereq()
Link copied to clipboard
open fun sdiv(s: Short)
open override fun sdiv()
Link copied to clipboard
open fun seq(s: Short)
open override fun seq()
Link copied to clipboard
open operator override fun set(index: Int, element: ShasamblyOpcode): ShasamblyOpcode
Link copied to clipboard
open override fun shortAdd()
Link copied to clipboard
open override fun shortBigger()
Link copied to clipboard
open override fun shortBiggerEq()
Link copied to clipboard
open override fun shortBiggerEquals()
Link copied to clipboard
open override fun shortDiv()
Link copied to clipboard
open override fun shortEq()
Link copied to clipboard
open override fun shortEquals()
Link copied to clipboard
open override fun shortMod()
Link copied to clipboard
open override fun shortMul()
Link copied to clipboard
open override fun shortSmaller()
Link copied to clipboard
open override fun shortSmallerEq()
Link copied to clipboard
open override fun shortSmallerEquals()
Link copied to clipboard
open override fun shortSub()
Link copied to clipboard
open override fun sjumpIf(target: Int)
Link copied to clipboard
open override fun sjumpIfTo(target: Int)
Link copied to clipboard
open override fun sjumpStatic(target: Int)
Link copied to clipboard
open override fun sjumpStaticTo(target: Int)
Link copied to clipboard
open fun smod(s: Short)
open override fun smod()
Link copied to clipboard
open fun smul(s: Short)
open override fun smul()
Link copied to clipboard
open fun sneg()
Link copied to clipboard
open override fun spush(short: Short)
open override fun spush(vararg shorts: Short)
Link copied to clipboard
open fun ssmaller(s: Short)
open override fun ssmaller()
Link copied to clipboard
open fun ssmallereq(s: Short)
open override fun ssmallereq()
Link copied to clipboard
open fun ssub(s: Short)
open override fun ssub()
Link copied to clipboard
open override fun storeLocalBoolean(address: Int)
Link copied to clipboard
open override fun storeLocalByte(address: Int)
Link copied to clipboard
open override fun storeLocalDouble(address: Int)
Link copied to clipboard
open override fun storeLocalFloat(address: Int)
Link copied to clipboard
open override fun storeLocalInt(address: Int)
Link copied to clipboard
open override fun storeLocalLong(address: Int)
Link copied to clipboard
open override fun storeLocalShort(address: Int)
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<ShasamblyOpcode>