Motorola HC12 Refrence Manual page 145

Table of Contents

Advertisement

EMUL
(D) × (Y) ⇒ Y : D
Operation:
Description:
An unsigned 16-bit value is multiplied by an unsigned 16-bit value to pro-
duce an unsigned 32-bit result. The first source operand must be loaded
into 16-bit double accumulator D and the second source operand must
be loaded into index register Y before executing the instruction. When
the instruction is executed, the value in D is multiplied by the value in Y.
The upper 16-bits of the 32-bit result are stored in Y and the low-order
16-bits of the result are stored in D.
The C status bit can be used to round the high-order 16 bits of the result.
Condition Codes and Boolean Formulas:
S
N:
Z:
C:
Addressing Modes, Machine Code, and Execution Times:
Source Form
EMUL
CPU12
REFERENCE MANUAL
Extended Multiply
16-Bit by 16-Bit (Unsigned)
X
H
I
N
Z
Set if the MSB of the result is set; cleared otherwise.
Set if result is $00000000; cleared otherwise.
Set if bit 15 of the result is set; cleared otherwise.
Address Mode
INH
INSTRUCTION GLOSSARY
V
C
Object Code
13
EMUL
Cycles
Access Detail
3
ffO
MOTOROLA
6-85

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents