6F3B0250

7. Instructions

Conversion instructions

FUN

Name

Expression

Function

Steps

Speed

Available

Page

No.

 

 

 

 

 

(ms)

T1

T1S

 

062

Hex to ASCII

-[ A HTOA (n)

B ]-

Converts the hexadecimal

4

 

 

Ö

179

 

conversion

 

 

data of n words stating with A

 

 

 

 

 

 

 

 

 

into ASCII characters, and

 

 

 

 

 

 

 

 

 

stores them in nx2 registers

 

 

 

 

 

 

 

 

 

starting with B.

 

 

 

 

 

063

ASCII to Hex

-[ A ATOH (n)

B ]-

Converts the ASCII

4

 

 

Ö

180

 

conversion

 

 

characters stored in n

 

 

 

 

 

 

 

 

 

registers stating with A into

 

 

 

 

 

 

 

 

 

hexadecimal data, and stores

 

 

 

 

 

 

 

 

 

them in n/2 registers starting

 

 

 

 

 

 

 

 

 

with B.

 

 

 

 

 

180

Absolute value

-[ A ABS B ]-

 

Stores the absolute value of A

3

5.0

Ö

Ö

249

 

 

 

 

in B.

 

 

 

 

 

182

2’s complement

-[ A NEG B ]-

 

Stores the 2’s complement

3

4.6

Ö

Ö

250

 

 

 

 

value of A in B.

 

 

 

 

 

183

Double-word

-[A+1×A DNEG B+1×B ]-

Stores the 2’s complement

3

4.6

Ö

Ö

251

 

2’s complement

 

 

value of A+1×A in B+1×B.

 

 

 

 

 

185

7-segment

-[ A 7SEG B ]-

Converts lower 4 bits of A into

3

43.9

Ö

Ö

252

 

decode

 

 

7-segment code, and stores it

 

 

 

 

 

 

 

 

 

in B.

 

 

 

 

 

186

ASCII

-[ A ASC B ]-

 

Converts the alphanumerics

3 - 10

29.8 -

Ö

Ö

254

 

conversion

 

 

(max. 16 characters) of A into

 

49.6

 

 

 

 

 

 

 

ASCII codes, and stores them

 

 

 

 

 

 

 

 

 

in registers starting with B.

 

 

 

 

 

188

Binary

-[ A BIN B ]-

 

Converts the BCD data in A

3

65.5

Ö

Ö

255

 

conversion

 

 

into binary data, and stores it

 

 

 

 

 

 

 

 

 

in B.

 

 

 

 

 

190

BCD

-[ A BCD B ]-

 

Converts the binary data in A

3

55.6

Ö

Ö

256

 

conversion

 

 

into BCD data, and stores it in

 

 

 

 

 

 

 

 

 

B.

 

 

 

 

 

132 T1/T1S User’s Manual

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Page 134
Image 134
Toshiba PROSEC T1 T1S, 6F3B0250 user manual Conversion instructions, Ascii