OSBuild: a linker styled programming language created by HaxeFloppa.
To print a string, use the following lines to do so:BOOTLOADER_PRINT
{
DISPLAY HELLO, WORLD!
}
You can type whatever you want within the "HELLO, WORLD!" part. And no, the string to print doesn't need to be all caps. I'm just trying to look cool.
To define a string, write first the type, in this case "STR_DEF", then the value.BOOTLOADER_PRINT
{
STR_DEF Hello, world!
}
To call a string, you'll need to call it by address as all variables are saved to dicts and each dict are classified by type. To do so, the following snippet will present how:
BOOTLOADER_PRINT
{
STR_DEF Hello, world!
STRING_CALL 0
}
BOOTLOADER_PRINT
{
INT_DEF 69
}
To call said integer, again, it works exactly the same as calling strings:
BOOTLOADER_PRINT
{
INT_DEF 69
INT_CALL 0
}
BOOTLOADER_PRINT
{
THROW haxefloppa knew you'd rush B
}