TC1784
Peripheral Control Processor (PCP)
User´s Manual
10-109
V1.1, 2011-05
PCP, V2.09
10.18.14 DSTEP, Divide Instruction
This section describes the DSTEP instruction of the PCP.
Note: The value in Ra must always be greater than the value in R0 prior to execution of
the DSTEP instruction. If the rules specified on
are followed, then the
above description and operation are correct. Failure to adhere to these rules will
yield undefined results.
DSTEP
Syntax
DSTEP <R0>, Rb, Ra
Description
Perform 1 step (eight bits) of an unsigned 32- by 32-bit divide
(Rb / Ra). Shift R0 left by 8 bits, copy the most significant byte
of Rb into LS byte of R0. Shift Rb left by 8 bits and add (R0
divided by Ra). Load R0 with (the remainder of R0 divided by
Ra).
Operation
R0 = (R0 << 8) + (Rb >> 24)
Rb = (Rb << 8) + R0 / Ra
R0 = R0 % Ra
Flags
Z
Summary of Contents for TC1784
Page 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Page 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Page 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...