6F3B0253

7. Instructions

Arithmetic operations

FUN

Name

 

 

Expression

Function

Steps

Speed

Page

No.

 

 

 

 

 

 

 

 

 

(s)

 

027

Addition

[ A +

B

 

C ]

 

Adds data of A and B, and

4

6.5

143

 

 

 

 

 

 

 

 

stores the result in C.

 

 

 

 

 

 

 

 

 

 

 

028

Subtraction

[ A -

B

 

C ]

 

Subtracts data of B from A,

4

6.5

144

 

 

 

 

 

 

 

 

and stores the result in C.

 

 

 

 

 

 

 

 

 

 

 

029

Multiplication

[ A

 

B

 

C+1C ]

Multiplies data of A and B,

 

 

 

 

 

 

 

 

 

 

 

and stores the result in

4

8.8

145

 

 

 

 

 

 

 

 

double-length register C+1C.

 

 

 

030

Division

[ A /

B

 

C ]

 

Divides data of A by B, and

 

 

 

 

 

 

 

 

 

 

 

stores the quotient in C and

4

9.7

146

 

 

 

 

 

 

 

 

the reminder in C+1.

 

 

 

031

Double-word

[ A+1A D+

B+1B

C+1C ]

Adds data of A+1A and

 

 

 

 

addition

 

 

 

 

 

 

4

11.6

147

 

 

 

 

 

 

 

 

B+1 B, and stores the result

 

 

 

 

 

 

 

 

in C+1C.

 

 

 

032

Double-word

[ A+1A D-

B+1B

C+1C ]

Subtracts data of B+1 B from

 

 

 

 

 

 

 

 

 

subtraction

 

 

 

 

 

 

4

11.7

148

 

 

 

 

 

 

 

 

A+1 A, and stores the result

 

 

 

 

 

 

 

 

in C+1C.

 

 

 

035

Addition with

[ A +C B

C ]

 

Adds data of A, B and the

 

 

 

 

carry

 

 

 

 

 

 

carry, and stores the result in

4

9.7

149

 

 

 

 

 

 

 

 

C. The carry flag changes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

according to the result.

 

 

 

036

Subtraction

[ A -C

B

C ]

 

Subtracts data of B and the

 

 

 

 

with carry

 

 

 

 

 

 

carry from A, and stores the

4

9.7

150

 

 

 

 

 

 

 

 

result in C. The carry flag

 

 

 

 

 

 

 

 

changes according to the

 

 

 

 

 

 

 

 

 

 

 

result.

 

 

 

039

Unsigned

[ A U

B

C+1C ]

Multiplies data of A and B,

 

 

 

 

multiplication

 

 

 

 

 

 

and stores the result in

4

 

151

 

 

 

 

 

 

 

 

double-length register C+1C.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(Unsigned integer operation)

 

 

 

040

Unsigned

[ A U/

B

 

C ]

 

Divides data of A by B, and

 

 

 

 

division

 

 

 

 

 

 

stores the quotient in C and

4

 

152

 

 

 

 

 

 

 

 

the reminder in C+1.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(Unsigned integer operation)

 

 

 

041

Unsigned

[ A+1A DIV B

C ]

Divides data of A+1 A by B,

 

 

 

 

 

 

 

 

 

double/single

 

 

 

 

 

 

and stores the quotient in C

4

15.3

153

 

division

 

 

 

 

 

 

and the reminder in C+1.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(Unsigned integer operation)

 

 

 

043

Increment

[ +1

A ]

 

 

 

Increments data of A by 1.

2

4.6

154

044

Decrement

[ -1 A ]

 

 

 

Decrements data of A by 1.

2

4.6

155

108 T1-16S User’s Manual

Page 110
Image 110
Toshiba 6F3B0253 user manual Arithmetic operations, C+1 ⋅C