WBMOV

WBMOV, WBMOVP

 

WBMOV instruction copies the specified bits from the source to the Destination.

 

S

Source

D

Destination

fm

Lowest bit number of the group and number of bits

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

WBMOV

WBMOVP

S

o

o

o

o

o

o

o

o

-

o

o

o

-

4

o

-

-

D

o

-

o

o

o

-

o

o

-

o

o

o

-

fm

o

o

o

o

o

o

o

o

-

o

o

o

o

 

  • WBMOV instruction copies a group of bits from (S) and write them in Destination in accordance with fm format.

 

  • fm format :

 

 

 

Example)

If X17 is ON, copy 10 bits from bit number 2 of D10 and write them in D20 starting from bit number 5.

 

 

 

 

If X20 is ON, copy 7 bits from bit number E of D00 and write them in D10 starting from bit number 3.