![Infineon Technologies TC1796 User Manual Download Page 625](http://html1.mh-extra.com/html/infineon-technologies/tc1796/tc1796_user-manual_2055437625.webp)
TC1796
System Units (Vol. 1 of 2)
Peripheral Control Processor (PCP)
User’s Manual
11-88
V2.0, 2007-07
PCP, V2.0
11.11.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 at
are followed, then the
above description and operation are correct. Failure to adhere to these rules will
yield undefined results.
11.11.15 INB, Insert Bit
This section describes the INB instructions of the PCP.
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
INB
Syntax
INB Rb, Ra, cc_A
Description
If CONDCA is true, then insert the carry flag R7.C into
register Rb at the bit position specified through bits [4..0] of
register Ra. If CONDCA is false, no operation is performed.
Operation
if (CONDCA = True) then R[b][R[a][4:0]] = R7_C else NOP
Flags
None
INB.I
Syntax
INB.I Ra, #imm5
Description
Insert the carry flag R7.C into register Ra at the bit position
specified through the immediate value imm5.
Operation
R[a][imm5] = R7_C
Flags
None