Format to represent an expression
Stolen documentation of rasm
Write text, variables or the result of evaluation of an expression during assembly.
By default, numerical values are formatted as
this behaviour:
fhexg Display in hexadecimal format. If the value is less than #FF two digits will be displayed.
If less than #FFFF, the display will be forced to 4 digits.
fhex2g, fhex4g, fhex8g to force hex display with 2, 4 or 8 digits.
fbing Display a binary value. If the value is less than #FF 8 bits will be displayed. Otherwise if
it is less than #FFFF 16 bits will be printed. Any negative 32 bits value with all 16 upper bits
set to 1 will be displayed as a 16 bits value.
fbin8g,fbin16g,fbin32g Force binary display with 8, 16 or 32 bits.
fintg Display value as integer.