Toshiba 6F3B0253 Sprinkler User Manual


 
6F3B0253
108 T1-16S User’s Manual
7. Instructions
Arithmetic operations
FUN
No.
Name Expression Function Steps
Speed
(µs)
Page
027 Addition
[ A + B C ]
Adds data of A and B, and
stores the result in C.
4 6.5 143
028 Subtraction
[ A - B C ]
Subtracts data of B from A,
and stores the result in C.
4 6.5 144
029 Multiplication
[ A B C+1
C ]
Multiplies data of A and B,
and stores the result in
double-length register C+1C.
4 8.8 145
030 Division
[ A / B C ]
Divides data of A by B, and
stores the quotient in C and
the reminder in C+1.
4 9.7 146
031 Double-word
addition
[ A+1A D+ B+1B C+1C ]
Adds data of A+1A and
B+1B, and stores the result
in C+1C.
4 11.6 147
032 Double-word
subtraction
[ A+1A D- B+1B C+1C ]
Subtracts data of B+1B from
A+1A, and stores the result
in C+1C.
4 11.7 148
035 Addition with
carry
[ A +C B C ]
Adds data of A, B and the
carry, and stores the result in
C. The carry flag changes
according to the result.
4 9.7 149
036 Subtraction
with carry
[ A -C B C ]
Subtracts data of B and the
carry from A, and stores the
result in C. The carry flag
changes according to the
result.
4 9.7 150
039 Unsigned
multiplication
[ A U B C+1
C ]
Multiplies data of A and B,
and stores the result in
double-length register C+1C.
(Unsigned integer operation)
4 151
040 Unsigned
division
[ A U/ B C ]
Divides data of A by B, and
stores the quotient in C and
the reminder in C+1.
(Unsigned integer operation)
4 152
041 Unsigned
double/single
division
[ A+1A DIV B C ]
Divides data of A+1A by B,
and stores the quotient in C
and the reminder in C+1.
(Unsigned integer operation)
4 15.3 153
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