M30626FJPFPU5C Renesas Electronics Corporation., M30626FJPFPU5C Datasheet - Page 87
Manufacturer Part Number
Renesas Electronics Corporation.
Specifications of M30626FJPFPU5C
[ Syntax ]
[ Operation ]
If the size specifier (.size) is (.B)
R0L (quotient), R0H (remainder)
If the size specifier (.size) is (.W)
R0 (quotient), R2 (remainder)
[ Function ]
• This instruction divides R2R0 (R0)
. The remainder has the same sign as the divisor. Shown in ( )
when you selected (.B) for the size specifier (.size).
• If src is an A0 or A1 when the size specifier (.size) you selected is (.B), operation is performed on the
8 low-order bits of A0 or A1.
• If you specify (.B) for the size specifier (.size), the O flag is set when the operation resulted in the
quotient exceeding 8 bits or the divisor is 0. At this time, R0L and R0H are indeterminate.
• If you specify (.W) for the size specifier (.size), the O flag is set when the operation resulted in the
quotient exceeding 16 bits or the divisor is 0. At this time, R0 and R2 are indeterminate.
[ Selectable src ]
[ Flag Change ]
The flag is set when the operation resulted in the quotient exceeding 16 bits (.W) or 8 bits (.B) or
the divisor is 0; otherwise cleared.
[ Description Example ]
[ Related Instructions ]
B , W
by signed src and stores the quotient in R0 (R0L)
;A0’s 8 low-order bits is the divisor.
[ Instruction Code/Number of Cycles ]
and the remainder in R2
are the registers that are operated on