Infineon Technologies C166S V2 User Manual page 278

16-bit microcontroller
Table of Contents

Advertisement

MUL
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
(MD) ← (op1) * (op2)
Description
Performs a 16-bit by 16-bit signed multiplication using the two words specified by
operands op1 and op2 respectively. The signed 32-bit result is placed in the MD
register.
CPU Flags
E
Always cleared.
Z
Set if result equals zero. Cleared otherwise.
V
This bit is set if the result cannot be represented in a word data type.
Cleared otherwise.
C
Always cleared.
N
Set if the most significant bit of the result is set. Cleared otherwise.
Encoding
Mnemonic
MUL
Rw
User Manual
Signed Multiplication
Arithmetic Instructions
MUL op1, op2
op1, op2 → WORD
MD → DOUBLEWORD
E
Z
0
*
, Rw
n
m
Detailed Instruction Description
V
C
*
0
Format
0B nm
8-278
User Manual
C166S V2
MUL
N
*
Bytes
2
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents