AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Syntax:          ORR {<cond>}{S} <destination>, <operand1>, <operand2>
Operation:     destination = operand one OR operand two
Flags:          N,Z,(C)

This instruction performs a logical bitwise OR operation between its two operands, with the result being placed in the destination register.

Note: This operation is particularly useful for forcing certain bits to be set in a data word.

Examples:
ORR   R0,R11,R2          ; R0 = R11 OR R2
ORR   R7,R7,#%1100     ; R7 = R7 OR %1100 (set bits 2 & 3)
ORRS  R5,R5,#2          ; R5 = R5 OR #2 (setting flags)

[sh-index] Back to list of manuals