Chapter 5: Standard RLL Instructions - Logical
Exclusive Or with Stack (XORS)
1
The Exclusive Or with Stack instruction is a 32-bit
230
instruction that performs an Exclusive Or of the value in
240
the accumulator with the first level of the accumulator
2
stack. The result resides in the accumulator. The value in
250-1
the first level of the accumulator stack is removed from
260
3
the stack and all values are moved up one level. Discrete
status flags indicate if the result of the Exclusive Or with
DS
Used
Stack is zero or a negative number (the most significant
4
HPP Used
bit is on).
5
SP63
SP70
6
NOTE: Status flags are valid only until another instruction uses the same flag.
7
In the following example when X1 is on, the binary value in the accumulator will be
Exclusive ORed with the binary value in the first level of the accumulator stack. The result
8
will reside in the accumulator.
9
DirectSOFT
10
X1
Load the value in V1400 and
11
V1401 into the accumulator
12
Exclusive OR the value
13
in the accumulator
with the value in the
first level of the
accumulator stack
14
Copy the value in the
A
accumulator to V1500 and V1501
Handheld Programmer Keystrokes
B
$
B
STR
1
L
D
SHFT
C
ANDST
3
X
Q
SHFT
SET
OR
GX
D
D
SHFT
OUT
3
5–82
DL205 User Manual, 4th Edition, Rev. B
Discrete Bit Flags
LDD
V1400
Acc.
XORS
Acc.
36476A38
XOR (1st level of Stack)
Acc.
OUTD
V1500
ENT
D
B
E
A
3
1
4
S
SHFT
ENT
RST
B
F
A
A
1
5
0
Will be on if the result in the accumulator is zero
Will be on if the result in the accumulator is negative
V1401
5
4
7
E
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0
1
0 1
0
1
0
0 0
1
1
1
0
1
0 1
0
1
0
0 0
1
1
1
0
0
1 1
0
1
1
0 0
1
0
0
0
0
1
0
1 0
0 0
0
0
1
0
0
1
0 0
0 0
0
0
0
1
1
0
6
2
3
9
V1501
A
ENT
0
0
ENT
0
XO R S
Description
V1400
2
8
15 14 13 12 11 10 9
8 7
1 1
1
0
0
0
1 0
1
0
0
0 0
1 1
1
0
0
0
1 0
1
0
0
0 0
0 1
1
1
0
1
1 0
1
0
1
0 0
1 0
0 0
0
0
0
1
0
1
0 0
0
0
1
0 0
4
2
V1500
7
A
6 5
4 3
2
1
0
1
1
1
1 0
1
0
1
1
1
1 0
1
0
0
1
1
1 0
0
0
1
0
0
0 0
1
0
4
2
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?