P60ARM-B/IG/GP1N Zarlink Semiconductor, Inc., P60ARM-B/IG/GP1N Datasheet - Page 28

no-image

P60ARM-B/IG/GP1N

Manufacturer Part Number
P60ARM-B/IG/GP1N
Description
A Low Power, General Purpose 32 Bit RISC Microprocessor
Manufacturer
Zarlink Semiconductor, Inc.
Datasheet
P60ARM-B
4.4.1 CPSR ßags
The data processing operations may be classified as logical or arithmetic. The logical operations (AND,
EOR, TST, TEQ, ORR, MOV, BIC, MVN) perform the logical action on all corresponding bits of the operand
or operands to produce the result. If the S bit is set (and Rd is not R15, see below) the V flag in the CPSR will
be unaffected, the C ßag will be set to the carry out from the barrel shifter (or preserved when the shift
operation is LSL #0), the Z ßag will be set if and only if the result is all zeros, and the N ßag will be set to
the logical value of bit 31 of the result .
The arithmetic operations (SUB, RSB, ADD, ADC, SBC, RSC, CMP, CMN) treat each operand as a 32 bit
integer (either unsigned or 2's complement signed, the two are equivalent). If the S bit is set (and Rd is not
R15) the V flag in the CPSR will be set if an overflow occurs into bit 31 of the result; this may be ignored if
the operands were considered unsigned, but warns of a possible error if the operands were 2's complement
signed. The C flag will be set to the carry out of bit 31 of the ALU, the Z flag will be set if and only if the
result was zero, and the N flag will be set to the value of bit 31 of the result (indicating a negative result if
the operands are considered to be 2's complement signed).
24
AND
EOR
SUB
RSB
ADD
ADC
SBC
RSC
TST
TEQ
CMP
CMN
ORR
MOV
BIC
MVN
Assembler
Mnemonic
OpCode
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
Table 4: ARM Data Processing Instructions
operand1 AND operand2
operand1 EOR operand2
operand1 - operand2
operand2 - operand1
operand1 + operand2
operand1 + operand2 + carry
operand1 - operand2 + carry - 1
operand2 - operand1 + carry - 1
as AND, but result is not written
as EOR, but result is not written
as SUB, but result is not written
as ADD, but result is not written
operand1 OR operand2
operand2
operand1 AND NOT operand2
NOT operand2
(operand1 is ignored)
(operand1 is ignored)
Action
(Bit clear)

Related parts for P60ARM-B/IG/GP1N