Skip to content
DanimalsTCGYT edited this page Aug 4, 2024 · 3 revisions

v4 interpreter - (4.8kb, 168 blocks)

download v4 // v4 contains an oasm compiler that allows you to compile the oasm separately to remove a lot of processing time from each oasm function call

totv int - define the number of variables to be used in the script (run first)

variables

setv index1 data - set the variable at the index int

chav index1 index2 - set index1 to index1 + index2

subv index1 index2 - set index1 to index1 - index2

mulv index1 index2 - set index1 to index1 * index2

divv index1 index2 - set index1 to index1 / index2

jumps

jump line - always jump to a line no matter what

gthn index1 index2 line if the data in the var at index1 is greater than the data in the var at index2, jump to line

lthn index1 index2 line if the data in the var at index1 is less than the data in the var at index2, jump to line

equl index1 index2 line if the data in the var at index1 is equal to the data in the var at index2, jump to line

ngth index1 index2 line if the data in the var at index1 is not greater than the data in the var at index2, jump to line (equivalent to less than or equal)

nlth index1 index2 line if the data in the var at index1 is not less than the data in the var at index2, jump to line (equivalent to greater than or equal)

prnt index - print the data in a variable to console

originOS Wiki

Wiki Views:
:views

OSL | RSH | ICN

Clone this wiki locally