EMULA

Extended multiply to the accumulator [V2.01.00 or later]

EMULA

Extended MULtiply to Accumulator


[Syntax]

EMULA src, src2, Adest

 

[Operation]

Adest = (signed long) src * (signed long) src2;

 

[Function]

This instruction multiplies src by src2, and places the result in the accumulator (ACC). src and src2 are treated as signed integers. You can assemble assembly-language code that includes this instruction if you have specified the assembler option -isa with selection of the instruction set of the RXv2 or a later version.

 

[Instruction Format]

Syntax

Operand

Code Size

(Byte)

src

src2

Adest

EMULA src, src2, Adest

Rs

Rs2

A0, A1

3

Note

Specify A0 (ACC0) or A1 (ACC1) as Adest.

 

[Flag Change]

This instruction does not affect the states of flags.

 

[Description Example]

EMULA R1, R2, A1