LCW
LOAD
COMPLEMENT WORD
0/Vord
index alignment)
LOAD
COMPLEMENT WORD loads the
32-bit
two's
com-
plement
of
the
effective
word into register
R.
Fixed-point
overflow occurs if
the
effective
word is
-2
31
(X'80000000
'
)
in which case the result in register R
is
-2
31
and
CC2
is
set
to
1;
otherwise, CC2 is reset to
O.
Affected:
(R),CC2,CC3,CC4 Trap:
Fixed-point
overflow.
-EW-R
Condition
code
settings:
2 3 4
Resu
I
tin
R
-
0 0 0 Zero
- -
0
Negati
ve
-
0 0 Positive
- 0 - -
No
fixed-point
overflow
o
Fixed-point
overflow
If
CC2
is
set
to
1 and
the
fixed-point
arithmetic
trap
mask
(AM)
is
aI,
the
BP
traps to
location
X'43'
after
execution
of
LOAD COMPLEMENT WORD;
otherwise,
the
BP
ex-
ecutes
the
next
instruction in
sequence.
LAW
LOAD
ABSOLUTE
WORD
0/Vord
index
alignment)
If
the
effective
word is positive,
LOAD
ABSOLUTE
WORD
loads the
effective
word into register
R.
If
the
effective
word
is
negative,
LAW
loads the
32-bit
two's complement
of
the
effective
word
into
register
R.
Fixed-point
overflow
occurs
if the
effective
word
is
-~
1 (X'80000000
'
), in
which case the result in register R
is
-i3
1
,
and
CC2
is
set
to
1;
otherwise, CC2 is
reset
to
O.
Affected:
(R),CC2,CC3,CC4 Trap:
Fixed-point
overflow
IEWI-R
Condition
code
settings:
2 3 4
Resu
I
tin
R
- 0 0 0 Zero
o
Nonzero
- 0 No
fixed-point
overflow
o
Fixed-point
overflow (sign
bit
on)
If
CC2
is
set
to
1
and
the
fixed-point
arithmetic
trap
mask
(AM)
is
aI,
the
BP
traps to
location
X'43'
after
execution
of
LOAD ABSOLUTE WORD;
otherwise,
the
BP
executes
the
next
instruction in
sequence.
LCD
LOAD COMPLEMENT DOUBLEWORD
(Doubleword
index
alignment)
LOAD COMPLEMENT DOUBLEWORD forms the
64-bit
two's complement
of
the
effective
doubleword, loads the
32
low-order
bits
of
the result into register
Ru
1,
and
then
loads
the
32
high-order
bits
of
the
result
into
register
R.
If R is an odd
value,
the result in
register
R is the
32
high-
order
bits
of
the
two's complemented doubleword.
The
con-
dition
code
settings
are
based on the two's complement
of
the
effective
doubleword,
rather
than the final result in
register
R.
Fixed-point
overflow occurs if the
effective
doubleword is
':'~3
(X'8000000000000000'), in
which
case
the
result in
registers
Rand
Rul
is
_~3
and
CC2
is
set
to
1;
otherwise,
CC2
is
reset to
O.
Affected:
(R),(Rul),CC2, Trap:
Fixed-point
overflow
CC3,CC4
[-ED]32-63 - Rul; [-ED]
0-31-
R
Condition
code
settings:
-
0 0 0
Zero
- - 0
Negati
ve
-
0 0 Positi ve
-
0 - -
No
fixed-point
overflow
o
Fixed-point
overflow
If
CC2
is
set to 1
and
the
fixed-point
arithmeti
c
trap
mask
(AM)
is
aI,
the
BP
traps to
location
X'43'
after
execution
of
LOAD COMPLEMENT DOUBLEWORD;
otherwise,
the
BP
executes
the
next
instruction in
sequence.
Example 1,
even
R field value:
Before
execution
After
execution
ED
X'O
123456789ABCDEF'
X
'
1023456789ABCDEF'
(R)
xxxxxxxx
X'FEDCBA98'
(Ru
1)
xxxxxxxx
X'76543211I
CC
xxxx
xOOl
Load/Store Instructions
51