Example – Toshiba SX 2000 User Manual

Page 64

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

1.4 Free ASCII mode

Example

When R0021 is ON, the ASCII characters stored in 8 words of D0300 to D0307
are converted into hexadecimal data, and stored in 4 words registers starting
with RW110.

8 7

D0300

D0301

D0302

D0303

D0304

D0305

D0306

D0307

“1” (H31)

“0” (H30)

“3” (H33)

“2” (H32)

“5” (H35)

“4” (H34)

“7” (H37)

“6” (H36)

“9” (H39)

“8” (H38)

“B” (H42)

“A” (H41)

“D” (H44)

“C” (H43)

“F” (H46)

“E” (H45)

Converted

RW110

RW111

RW112

RW113

HOI 23

H4567

H89AB

HCDEF

If the source table (D0300 to D0307) contains invalid characters (other than "0"

to "F"), the instruction is not executed and the output (R0022) stays OFF.

If the word number of conversion is odd, the lower 2 digits of last data on the

destination table is unknown.

Therefore set even value to the word number of conversion.

6F8C0926

47

Advertising