EMUL (FLOAT)

EMUL, EMULP (FLOAT)

 

EMUL instruction multiplies S1 with S2 and save the result in Destination (assigned device address).

(It supports only in XP and PLCS CPU series.)

 

 

S1, S2

Source (Float value)

D

Destination

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

EMUL(P)

S1

o

o

o

o

o

-

-

-

-

o

o

o

-

4

o

-

-

S2

o

o

o

o

o

-

-

-

-

o

o

o

-

D

o

-

o

o

o

-

-

-

-

o

o

o

-

 

Function

  • Multiply S1 with S2 and save the result to Destination.

 

Example)

If X02 is ON, multiply D0 with D4 and save the result to Y40.