i# Returns the current index
f# Returns the current frame
s# Returns the image offset
p# Returns the palette offset
st# Returns sprite table offset
pt# Returns palette table offset
&mem and #mem will replace with their respective values when called,
So they can be used in almost any command!
*
&mem Returns the EXACT data in the memory stack
&mem( memory index)
*
#mem Returns the VALUE of the data in the memory stack
&mem( memory index)
Read: Reads data from the loaded ROM into memory
read( startoffset, length)
Write: Writes data to the loaded ROM
write( writedata, startoffset)
Image: Loads either an image form the ROM (both compressed and un-compressed
image( image offset, palette offset, size)
Size = 4bytes (WWwwHHhh)
Condition - palette offset = "grayscale" : loads an image in grayscale
Freespace: Finds the offset of a given amout of freespace and loads it into memory
freespace( size, startoffset)
Add: Increases mem(0) by a value
add( value)
Subtract: Decreases mem(0) by a value
subtract( value)
Multiply: Multiplies mem(0) by a value
multiply( value)
Divide: Divides mem(0) by a value
divide( value)
Append: Loads a value into memory
append( value)
Flip: Flips mem(0) in section length
flip( value)
Condtion - flip(0) : flips mem(0) entirely
Condtion - flip(1) : flips mem(0) byte by byte
Dump: Removes memory at a given depth
dump( value)
Debug: Displays a dialog with the current memory status among other things
debug
Stop: Ends plugin execution
stop
Fmax: Sets the frame bounds to a value
fmax( value)
Imax: Sets the index bounds to a value
imax( value)
If Statements: Compare mem(0) to a value. If code contained in { }
If(value)
If!(value)
If>(value)
If<(value)
Nin: Propmts for input
nin( prompt message, response form)
Condition: Response form = "d" responds in standard form
Condition: Response form = "h" responds in hex form
*
Nout: Shows ouput in a message-box
nout( value)
nout( "String")
*
DrawPoint: Draws a point on the canvas
drawpoint( x-coordinate, y-coordinate, palette index)
*
Jump: Jumps executed line back or forth
jump( jump distance {can be positive or negative} )
*
While Statements: Compare mem(0) to a value. While code contained in { }
While(value)
While!(value)
While>(value)
While<(value)
*
Fin: Loads a file into memory
fin(file location relative to plugin location in quotes, file extension in quotes) ex: fin("in",".test")
Condition: file location = "dialog" shows an open file dialog with the given extension
*
Fout: Outputs memory [0] to a file
fout(file location relative to plugin location in quotes, file extension in quotes) ex: fout("out",".test")
Condition: file location = "dialog" shows a save file dialog with the given extension