Intel XScale(R) technology topicORR - Or (logical)

Syntax

ORR[condition][S] dest, op1, addr_mode

where:

 condition

One of 16 conditions. Refer to Condition Code Status.

 S

update condition code flag (bit[20])

 dest

destination register

 op1

register containing the first operand

 addr_mode

Addressing Mode 1: Data-Processing Operands

Description

The ORR instruction performs the inclusive 'or' on op1 and addr_mode . The result is stored in dest . The condition needs to be a valid value; else the instruction is rendered an NOP.

Addressing Mode

See Addressing Mode 1 - Data processing operands.

Flags Affected 

N

Z

C

V

Q

S

I

F

T

TM

TM

TM

T

 

T

T

 

 

Encoding  

31

 

28

27

26

25

24

23

22

21

20

19

 

16

15

 

12

11

 

0

condition

0

0

I

1

1

0

0

S

op1

dest

addr_mode

Example

1                            ;@.text
2
3                            ;@.globl funcorr
4
5                            ;@.align 0
6
7                            ;@ * * * ORR (Adressing Mode 1) * * *
8
9
10                   AREA example, CODE, READONLY
11
12                         @ Select SPSR - set bit 22 to 1
13   00000000   E14F1000   MRS   R1, SPSR
14   00000004   E3811980   ORR   R1, R1, #0x200000
15
16                         @ Select flag field mask bit
17   00000008   E360F001   MSR   SPSR_F, #1
18
19                         END

Further Information

See Addressing Mode 1: Data-Processing Operands