Mult — Multiply (Unsigned) - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00
6.3.45 MULT — MULTIPLY (UNSIGNED)
dst,src
MULT
dst  dst  src
Operation:
The 8-bit destination operand (even register of register pair) is multiplied by the source operand
(8-bits), and the product (16-bits) is stored in register pair specified by destination address. Both
operands are treated as unsigned integers.
C: Set if the result is  255; cleared otherwise.
Flags:
Z: Set if the result is "0"; cleared otherwise.
S: Set if the MSB of result is "1"; cleared otherwise.
V: Cleared.
D: Unaffected.
H: Unaffected.
Format:
Opc
Given register 00H = 20H, register 01H = 03H, register 02H = 09H, and register 03H = 06H:
Examples:
MULT 00H, 02H
MULT 00H, @01H
MULT 00H, #30H
In the first example, the statement "MULT 00H,02H" multiplies 8-bit destination operand (in the
register 00H of register pair 00H, 01H) by the source register 02H operand (09H). The 16-bit
product, 0120H, is stored in the register pair 00H, 01H.
src
dst
Register 00H = 01H, register 01H = 20H, register 02H = 09H
Register 00H = 00H, register 01H = 0C0H
Register 00H = 06H, register 01H = 00H
Bytes
Cycles
3
6-58
6 INSTRUCTION SET
Opcode
Addr Mode
(Hex)
dst
22
84
22
85
22
86
src
RR
R
RR
IR
RR
IM

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents