EasyManua.ls Logo

Panasonic FP-E - Page 427

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High−level Instructions
3 − 163
Conversion Example
The following shows conversion of ASCII codes to hexadecimal data.
Conversion of eight characters (S2 = K8)
31 46 45 44 43 42 41
S1+3 S1+2 S1+1 S1
32
21FE
DCBA
ASCII code
8 characters (8 bytes)
12 EF CD AB
D+1 D
Converted result
Result of S1 + 3,
S1 + 2 conversion
Result of S1 + 1, S1
conversion
F72 (AHEX) instruction execution
Conversion of 7 characters (S2 = K7)
S1+3 S1+2 S1+1 S1
ASCII code
7 characters (7 bytes)
D+1 D
Converted result
31 46 45 44 43 42 41
1FEDCBA
10 EF CD AB
This position is
filled with “0”.
F72 (AHEX) instruction execution
Conversion of 6 characters (S2 = K6)
S1+2 S1+1 S1
ASCII code
6 characters (6 bytes)
D+1 D
Converted result
46 45 44 43 42 41
FEDCBA
EF CD AB
Result of S1+1,
S1 conversion
Result of S1+2
conversion
F72 (AHEX) instruction execution
Note
In the conversion results, only the data for the lower byte is
stored in D + 1 word. The data for the higher byte is left as it is,
and does not change.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com