"Signed print X, variable width"
Interprets the 8-bit integer number in X as an signed number in the range -128 to +127. Formats it into an ASCII (readable) character string and sends the result to the destination called for in dest.
The result will be a variable number of characters, depending on the size of the number. The minimum is 1 character (e.g. "9"), the maximum 4 (e.g. "-100").
This instruction is automatically indexed.
When printing to RAM the index register I is added to the dest address and the result is stored in that location. I is then incremented by the number of characters stored. This allows several things to be "printed" to RAM.
"Printing" to RAM is typically used for communicating with an Xwire peripheral.
The dest argument determines where the result of the instruction is directed.
Destination address (dest) |
Where the result is directed |
0 - 249 |
The result is stored in successive RAM locations, starting at dest. It will occupy as many RAM locations as are needed to contain the result, one location per character. For example, the result of Note: These addresses are not jndexed. Instead they use |
251 |
The result is directed to the serial port, providing the selected protocol is "User programmable". This is the primary means of generating any arbitrary serial output under program control. |
Dialect exclusions: Not available in dialects before 23
See also iiChrPrintX, iifPrintWFW, iifPrintWVW, iiHexPrintX, iisPrintXFW, iiuPrintXFW, iiuPrintXVW