Chapter 3 Creating and Editing Screens TOASC (Convert a Hexidecimal Value Var2 to Four Single ASCII Values (4 WORDS) Starting at Var1.) Equation Var1 = TOASC (Var2) Explanation Convert Var2 (1 WORD in hexadecimal format) to the ASCII (4 WORDS) code and store the result in Var1. Remark The calculation result can be stored as unsigned WORD. Var1 and Var2 can be internal memory only. Example Convert $0 (1 WORD in hexadecimal format) to the ASCII (4 WORDS) code and store the result in $10 (this is an operation of unsigned 16-bit data).
$0 = 1234H $10 = TOASC ($0) After executing TOASC command, $10=0031H (ASCII 1) $11=0032H (ASCII 2) $12=0033H (ASCII 3) $13=0034H (ASCII 4) Revision May, 2010 3-341