code2str

Converts ASCII code value to its string expression.

code2str <strvar> <ASCII code>

Remarks

If the integer value <ASCII code> is 1-255, this command copies a character with the <ASCII code> to the string variable <strvar>.
This command converts an ASCII code sequence expressed by <ASCII code> to a character string and copies it to <strvar>.
The non-zero highest-order byte of <ASCII code> is regarded as the first byte of the ASCII code sequence.
If <ASCII code> is zero, <strvar>.is set to ''(empty). The maximum length of the character string is 4

Example

; The character "A" is stored in the variable "str".
; The ASCII code for "A" is $41.
code2str str $41

; The character string "AB" is stored in the variable "str".
; The ASCII code $41 is for "A" and $42 for "B".
code2str str $4142