Intel 8XC251SA User Manual page 354

Embedded microcontroller
Hide thumbs Also See for 8XC251SA:
Table of Contents

Advertisement

8XC251SA, SB, SP, SQ USER'S MANUAL
MUL WRjd,WRjs
Binary Mode
Bytes:
States:
[Encoding]
1 0 1 0
Hex Code in:
Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation:
MUL (16-bit operands)
if <dest> jd = 0, 4, 8, .., 28
WRjd ← high word of the WRjd X WRjs
WRjd+2 ← low word of the WRjd X WRjs
if <dest> jd = 2, 6, 10, .., 30
WRjd–2 ← high word of the WRjd X WRjs
WRjd ← low word of the WRjd X WRjs
MUL AB
Function:
Multiply
Description:
Multiplies the unsigned 8-bit integers in the accumulator and register B. The low byte of the
16-bit product is left in the accumulator, and the high byte is left in register B. If the product is
greater than 255 (0FFH) the OV flag is set; otherwise it is clear. The CY flag is always clear.
Flags:
CY
0
Example:
The accumulator contains 80 (50H) and register B contains 160 (0A0H). After executing the
instruction
MUL AB
which gives the product 12,800 (3200H), register B contains 32H (00110010B), the
accumulator contains 00H, the OV flag is set, and the CY flag is clear.
Binary Mode
Bytes:
States:
[Encoding]
1 0 1 0
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation:
MUL
(A) ← low byte of (A) X (B)
(B) ← high byte of (A) X (B)
A-102
Source Mode
3
2
12
11
1 1 0 1
AC
Source Mode
1
1
5
5
0 1 0 0
t t t t
t t t t
OV
N
Z

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents