PRINTF requires a null-terminated string to be pointed to by Rx. When a LF is hit (10 in ascii), the string will be printed. There is a limit of 40 characters in the buffer.
If any more are attempted to be fed into it, they are lost and the string prints as if LF was sent.
PRINTF R2 — prints a string in memory pointed to by R2
HEX.b Rx HEX.w Rx HEX.l Rx
Prints byte/word/long of Rx to buffer in hex.
HEX commands will print hex and decimal numbers into the buffer, respectively. .B, .W, and .Lwill print 8, 16, and 32 bits worth of number respectively. These are useful for printing out warnings and errors and other status information for the user. The address cannot exceed 0x1fff. Attempting to print a string past this point will cause the string reading to end at address 0x2000. The address is ANDed with 0x1fff before reading starts.
HEX.L R6 — prints a 32 bit value in hex from R6
DEC.b Rx DEC.w Rx DEC.l Rx
Prints byte/word/long of Rx to buffer in DEC.
DEC commands will print hex and decimal numbers into the buffer, respectively. .B, .W, and .L will print 8, 16, and 32 bits worth of number respectively. These are useful for printing out warnings and errors and other status information for the user. The address cannot exceed 0x1fff. Attempting to print a string past this point will cause the string reading to end at address 0x2000. The address is ANDed with 0x1fff before reading starts.
DEC.B R1 — prints an 8 bit value in decimal from R1