Increments the current memory location by 1.
Decrements the current memory location by 1.
Sets the current memory location to a given number.
Outputs the current memory value.
Same as run, but doesn't print a newline afterwards.
Takes an address, copies the value from the current memory location to the provided location.
Sets the current memory location to the provided address.
Sets a jump marker with value equal to the provided number.
Moves the program execution pointer to the jump marker with the value equal to the provided number.
Does nothing instead if the current memory value is 0.
Does nothing unless the current memory value is 0.
Skips all instructions until the jump instruction with the value equal to the provided number.
Built-in rng keyword. Has a 1/3 chance to set the current memory value to 1; otherwise sets it to 0.
Terminates the program.
If the current memory value is equal to the given number, do nothing, else skips all instructions until the given jump marker
Alias for triggerspike.
Takes an agrument of a path to a smotslang file and runs it.
Sets the program to output numbers
Sets the program to output characters
Any of these can be used interchangeably with all keywords that take an argument.
like binary, but the character '7' represents 0 and the character '8' represents 1
$number refers to the value stored at the memory address number.
@madeline prompts the user for input, and has the value of the number they input.
Smotsinary can be hard to work with, so if you put a `^` before a base 10 number, it converts it to smotsinary for you!
Like numbers but if you put a `'` before a character to convert it into smotsinary.
Note
You can't use this method to get characters like spaces however!
Smotslang has a special memory slot for holding file paths, to set this slot use the state keyword.
state C:\Users\Admin\Downloads\smotslang\examples\meow.txt
loads meow.txt into memory.
You can also use the badeline
keyword to open a file prompt, setting the current file to the selection.
Note
The default value of the file memory is smotslang's index.js, so be careful!
To read from the open file, use @tas.
@tas
gets the nth byte of a file where n is the current memory value.
climb crumble @tas
stores the second byte of meow.txt to memory.
To get the length of the file use @recordcount
Denoted by wrapping the comment in --
Example: -- smots gaming -- (Including the spaces is important!)