beautypg.com

Instructions fun 052 eor exclusive or – Toshiba 6F3B0253 User Manual

Page 160

background image

6F3B0253

158

T1-16S User’s Manual

7. Instructions

FUN 052

EOR

Exclusive OR

Expression

Input

[ A EOR B

C ]

Output

Function

When the input is ON, this instruction finds exclusive OR of

A and B, and stores the result in C.

Execution condition

Input

Operation

Output

OFF

No execution

OFF

ON

Execution

ON

Operand

Name

Device

Register

Constant Index

X

Y

R

S

T.

C. XW YW RW SW T

C

D

I

J

K

A Source

B source

C Exclusive OR

Example

When R012 is ON, exclusive OR operation is executed for the data of D1000 and D0300, and
the result is stored in D1000.

If the data of D1000 is H5678 and D0300 is H4321, the result H1559 is stored in D1000.

F

E

D

C

B

A

9

8

7

6

5

4

3

2

1

0

D1000

0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0

5

6

7

8

Exclusive OR

D0300

0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1

4

3

2

1

D1000

0 0 0 1 0 1 0 1 0 1 0 1 1 0 0 1

1

5

5

9