beautypg.com

Sel language – IAI America DS-S-C1 User Manual

Page 44

background image

42

n

o

i

s

n

a

p

x

E

n

o

i

t

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

i

t

i

d

n

o

c

)

g

a

l

F

·

O

/

I

(

d

n

a

m

m

o

C

t

s

o

P

)

g

a

l

F

·

t

r

o

p

t

u

p

t

u

O

(

d

n

a

m

m

o

C

1

d

n

a

r

e

p

O

2

d

n

a

r

e

p

O

l

a

n

o

i

t

p

O

l

a

n

o

i

t

p

O

R

O

E

.

o

N

e

l

b

a

i

r

a

V

a

t

a

D

R

Z

EOR (Exclusive Or Logic)

[Function]

Stores the results of the exclusive logic operation on the contents of the variable in operand 1 and the
data in operand 2, in the variable in operand 1. The output turns ON when the result of the
operation is 0.

[Example 1]

LET

1

204

Assign 204 to variable 1.

EOR

1

170

Assign 102 in, the result of exclusive logic of 204 (contents of variable 1)
and 170 (data in operand 2), to variable 1.

[Example 2]

LET

1

2

Assign 2 to variable 1.

LET

2

204

Assign 2 to variable 1.

LET

3

170

Assign 170 to variable 3.

EOR

*1

*3

Assign 102, the result of logic OR on 204 (content of variable 2 which is
the content in variable 1) and 170 (content of variable 3), to 2
(the content of variable 1).

12. SEL Language

EOR 170

Decimal number

Binary number

204

11001100

102

EOR10101010
0110110