6F3B0253

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 ofA 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.

D1000

D0300

D1000

F E D C B A 9 8 7 6 5 4 3 2 1 0

0

1

 

0

1

0

1

 

1

0

0

1

 

1

1

1

0

 

0

0

 

5

 

 

 

6

 

 

 

7

 

 

 

8

 

 

 

 

 

 

 

 

Exclusive OR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

 

0

0

0

0

 

1

1

0

0

 

1

0

0

0

 

0

1

 

4

 

 

 

3

 

 

 

2

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

 

0

1

0

1

 

0

1

0

1

 

0

1

1

0

 

0

1

 

1

 

 

 

5

 

 

 

5

 

 

 

9

 

 

158 T1-16S User’s Manual

Page 160
Image 160
Toshiba 6F3B0253 user manual Eor, Exclusive or