EasyManuals Logo

Infineon Technologies TC1796 User Manual

Infineon Technologies TC1796
2150 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #632 background imageLoading...
Page #632 background image
TC1796
System Units (Vol. 1 of 2)
Peripheral Control Processor (PCP)
User’s Manual 11-95 V2.0, 2007-07
PCP, V2.0
11.11.23 Multiply Instructions
This section describes the multiply instructions of the PCP.
Note: In the case of the MSTEP64 instruction above, the “temp” variable is a 40-bit
variable and all calculations are performed using 40-bit unsigned arithmetic. All
other calculations use 32-bit unsigned arithmetic.
MSTEP32 Syntax MSTEP32 <R0>, Rb, Ra
Description Perform an unsigned multiply step, using eight bits of data
taken from Rb, keeping the least significant 32 bits of a
potential 64-bit result.
Left rotate Rb by 8 bits. Shift R0 left by 8 bits. Add (Ra
multiplied by the least significant 8 bits of Rb) to R0. If value
of R0 is zero then set Z (to signal zero result) else clear Z.
Operation Rb = (Rb << 8) + (Rb >> 24)
R0 = (R0 << 8) + (Rb & 0xff) × Ra
Flags Z
MSTEP64 Syntax MSTEP64 <R0>, Rb, Ra
Description Perform an unsigned multiply step, using eight bits of data
taken from Rb, keeping 40 bits of a potential 64-bit result.
Add (Ra multiplied by the least significant 8 bits of Rb) to R0
and retain the 40 bit result (shown as temp below). Store the
most significant 32 bits of the result (temp) in R0. Shift Rb
right by 8 bits. Store the least significant 8 bits of the first
result (temp) in the most significant 8 bits of Rb.
If value of R0 is zero then set Z (to signal zero result) else
clear Z.
Operation temp = R0 + Ra × (Rb & 0xff)
R0 = temp >> 8
Rb = (Rb >> 8) + ((temp & 0xff) << 24)
Flags Z

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Infineon Technologies TC1796 and is the answer not in the manual?

Infineon Technologies TC1796 Specifications

General IconGeneral
BrandInfineon Technologies
ModelTC1796
CategoryController
LanguageEnglish