
2.22 ASCII CONVERSION 3 Instruction (ASCBIN)
2-36
2.23 ASCII CONVERSION 3 Instruction (ASCBIN)
[Outline]
The ASCBIN instruction converts four-digit hexadecimal ASCII character codes in the Source into
16-bit binary data and stores it in the Dest.
[Format]
Symbol : ASCBIN
Full Name : Convert ASCII to Binary
Category : MATH
Icon :
[Parameter]
Parameter Name Setting
Source · Any integer type register
· Any integer type register with subscript
Dest · Any integer type register (except for # and C register)
· Any integer type register with subscript (except for # and C register)
[Program Example]
The for-byte ASCII code stored in MW00100 to MW00101 is converted to two-byte binary data, and
the result is stored in MW00200.
MW00100
MW00101
MW00200
Source
12H
Upper
34H
LowerUpper Lower
32H ('2')
34H ('4')
31H ('1')
33H ('3')
Comentarios a estos manuales