Omron CP1E CPU UNIT SOFTWARE User Manual page 379

Cp1e cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
ASCII CON-
ASC
VERT
ASCII TO HEX
HEX
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
@
ASC(086)
S
Di
D
S: Source word
Di: Digit designator
D: 1st destination word
@
HEX(162)
S
Di
D
S: 1st source word
Di: Digit designator
D: Destination word
Function
Converts 4-bit hexadecimal digits in the source word into their
8-bit ASCII equivalents.
Di
First digit to convert
Number of
digits (n+1)
Left (1)
Right (0)
DI: Digit Designator
Digit number: 3 2 1 0
Specifies the first digit in S to be converted (0 to 3).
Number of digits to be converted (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
First byte of D to be used.
0: Rightmost byte
1: Leftmost byte
Parity
0: None
1: Even
2: Odd
Converts up to 4 bytes of ASCII data in the source word to their
hexadecimal equivalents and writes these digits in the specified
destination word.
Di
First byte to convert
Left (1)
Right (0)
Number of digits (n+1)
First digit to write
DI: Digit Designator
Digit number: 3 2 1 0
Specifies the first digit in D to receive converted
data (0 to 3).
Number of bytes to be converted (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
First byte of S to be converted.
0: Rightmost byte
1: Leftmost byte
Parity
0: None
1: Even
2: Odd
Appendices
C: 0021
A-25

Advertisement

Table of Contents
loading

Table of Contents