This file contains standard procedures.
MODULE_STANDARD | 0 |
STANDARD_PRINT_NUMBER | 1 |
STANDARD_PRINT_STRING | 2 |
STANDARD_PRINT_FORMAT | 3 |
STANDARD_END_FORMAT | 4 |
STANDARD_CLEAR_CONSOLE | 5 |
STANDARD_SLEEP | 6 |
STANDARD_STOP_VM | 7 |
STANDARD_STOP_PROGRAM | 8 |
STANDARD_GET_TIME | 9 |
TRUE | 1 |
FALSE | 0 |
Print a number in the console.
proc printN(number n)
Name | Type | Description |
---|---|---|
n | number | The number to print. |
Print a string in the console.
proc printS(string s)
Name | Type | Description |
---|---|---|
s | string |
Set the string formatting.
proc printFormat(string )
Name | Type | Description |
---|---|---|
format | string | The format, for example: "The number: %n, the text: %s" |
End the string formatting.
proc endFormat()
Clear the console in the IDE.
proc clearConsole()
Halt the execution of the VM for a given number of milliseconds.
proc sleep(number time)
Name | Type | Description |
---|---|---|
time | number | Milliseconds to pause. |
Stop the VM, this command does not stop the program.
proc stopVM()
Stop the program.
proc stopProgram()
Get the time value.
proc getTime()
Keep looping, this traps the VM in an enless loop without stopping.
proc halt()