Zilog Z16F2810 User Manual

Page 141

Advertising
background image

UM018809-0611

MUL Instruction

ZNEO

®

CPU Core

User Manual

125

MUL

Definition

Multiply

Syntax

MUL dst, src

Operation

dst

 dst

src

Description

This instruction performs a multiplication of two 32-bit values with an 32-bit result. The 32-bit
result is written to the destination register. The source register is not changed. Results larger than
FFFF_FFFFH are truncated to 32 bits. If a larger result is required, use SMUL or UMUL.

Flags

Flags are set based on the 32-bit destination register value.

Syntax and Opcodes

7

6

5

4

3

2

1

0

C

Z

S

V

B

CIRQE IRQE

*

*

0

0

Legend

C

= No change.

Z

= Set to 1 if the result is zero; otherwise, set to 0.

S

= Set to 1 if bit [31] of the result is 1; otherwise set to 0.

V

= Cleared to 0.

B

= Cleared to 0.

CIRQE

= No change.

IRQE

= No change.

Instruction, Operands

Word 0

Word 1

Word 2

MUL Rd, Rs

{B2H, Rs, Rd}

Note:

Advertising
This manual is related to the following products: