Mul.l - Hitachi SH7750 Programming Manual

High-performance risc engine superh (sh) 32-bit risc mcu/mpu series
Hide thumbs Also See for SH7750:
Table of Contents

Advertisement

10.63

MUL.L

Double-Precision
Multiplication
Format
MUL.L Rm,Rn
Description
This instruction performs 32-bit multiplication of the contents of general registers Rn and Rm, and
stores the lower 32 bits of the result in the MACL register. The contents of MACH are not
changed.
Operation
MULL(long m, long n) /* MUL.L Rm,Rn */
{
MACL=R[n]*R[m];
PC+=2;
}
Example
MUL.L
R0,R1
STS
MACL,R0
Rev. 2.0, 03/99, page 332 of 396
MULtiply Long
Summary of Operation
Rn×Rm → MACL
;Before execution R0 = H'FFFFFFFE, R1 = H'00005555
;After execution
;Get operation result
Arithmetic Instruction
Instruction Code
0000nnnnmmmm0111 2–5
MACL = H'FFFF5556
Execution
States
T Bit

Advertisement

Table of Contents
loading

Table of Contents