![Atmel SAM4S Series Скачать руководство пользователя страница 111](http://html1.mh-extra.com/html/atmel/sam4s-series/sam4s-series_preliminary-data-sheet_3003408111.webp)
111
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
11.6.5.2
AND, ORR, EOR, BIC, and ORN
Logical AND, OR, Exclusive OR, Bit Clear, and OR NOT.
Syntax
op{S}{cond} {Rd,} Rn, Operand2
where:
Operation
The
AND
,
EOR
, and
ORR
instructions perform bitwise AND, Exclusive OR, and OR operations on
the values in
Rn
and
Operand2
.
The
BIC
instruction performs an AND operation on the bits in
Rn
with the complements of the cor-
responding bits in the value of
Operand2
.
The
ORN
instruction performs an OR operation on the bits in
Rn
with the complements of the cor-
responding bits in the value of
Operand2
.
Restrictions
Do not use SP and do not use PC.
Condition Flags
If
S
is specified, these instructions:
• update the N and Z flags according to the result
• can update the C flag during the calculation of
Operand2
• do not affect the V flag.
Examples
AND
R9, R2, #0xFF00
ORREQ
R2, R0, R5
ANDS
R9, R8, #0x19
EORS
R7, R11, #0x18181818
BIC
R0, R1, #0xab
ORN
R7, R11, R14, ROR #4
ORNS
R7, R11, R14, ASR #32
op
is one of:
AND
logical AND.
ORR
logical OR, or bit set.
EOR
logical Exclusive OR.
BIC
logical AND NOT, or bit clear.
ORN
logical OR NOT.
S
is an optional suffix. If
S
is specified, the condition code flags are updated on the
result of the operation, see
cond
is an optional condition code, see
.
Rd
is the destination register.
Rn
is the register holding the first operand.
Operand2
is a flexible second operand. See
for details of the
options.
Содержание SAM4S Series
Страница 44: ...44 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Страница 412: ...412 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Страница 1105: ...1105 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Страница 1142: ...1142 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 3 100 ball VFBGA Package Drawing ...
Страница 1143: ...1143 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 4 64 lead LQFP Package Drawing ...
Страница 1145: ...1145 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 5 64 lead QFN Package Drawing ...