VM_LOAD_TEXT NARGS
Loads text in memory.
The text string is defined using the .asciz
command:
VM_LOAD_TEXT 0
.asciz "text to render"
The following format specifiers allow variables to be rendered as part of the text:
%d
Render a variable value.%Dn
Render a variable value with n
length.%c
Render a character based on the variable value..asciz
call using .dw
followed by a list of N
variables in the order they'll be rendered.
VM_LOAD_TEXT 3
.dw VAR_0, VAR_1, VAR_1
.asciz "Var 0 is %d, Var 1 is %d, Var 2 is %d"
The text string can contain escape sequences that modify the behavior or appearance of the text.
\001\x
Sets the text speed for the next characters in the current text. x
is a value between 1
and 8
that represents the number of frames between the render of a character using 2^(x-2)
.\002\x
Sets the text font.\003\x\y
Sets the position for the next character.\004\x\y
Sets the position for the next character relative to the last character.\005
Escapes the next character.\006\mask
Waits for input to continue to the next character.\007\n
Inverts the colors of the following characters. \007\002
enables inverted colors, \007\001
disables them. (Only supported when using a 2-color variable width font)\010\x
Switches between left to right (x
= 01
) and right to left (x
= 02
) printing.\011
Zero width symbol.\n
Next line.\013\x
Sets UI palette number to x
.\r
Scrolls text one line up.```