Specifications
Usage
The previous register set is specified by status.PRS. By default,
status.PRS indicates the register set in use before an exception,
such as an external interrupt, caused a register set change.
To write to an arbitrary register set, software can insert the
desired register set number in status.PRS prior to executing
wrprs.
System software must use wrprs to initialize r0 to 0 in each
shadow register set before using that register set.
If shadow register sets are not implemented on the Nios II core,
wrprs is an illegal instruction.
Exceptions
Supervisor-only instruction
Illegal instruction
Instruction Type
R
Instruction Fields
A = Register index of operand rA
C = Register index of operand rC
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
A 0 C 0x14
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x14 0 0x3a
xor
Instruction
bitwise logical exclusive or
Operation
rC ← rA ^ rB
Assembler Syntax
xor rC, rA, rB
Example
xor r6, r7, r8
Description
Calculates the bitwise logical exclusive-or of rA and rB and
stores the result in rC.
Exceptions
None
Instruction Type
R
NII51017
2015.04.02
xor
8-83
Instruction Set Reference
Altera Corporation
Send Feedback