Difference between revisions of "Assembler:Commands:OR"

From Cheat Engine
Jump to navigation Jump to search
(Replaced content with '<span style="font-size:25px;color:red">Sorry! Content not available.</span>')
Line 1: Line 1:
[[Category:Assembler]]
+
<span style="font-size:25px;color:red">Sorry! Content not available.</span>
'''command''' or ''destination'', ''source''
 
 
 
The OR instruction is used for supporting logical expression by performing bitwise OR operation. The bitwise OR operator returns 1, if the matching bits from either or both operands are one. It returns 0, if both the bits are zero.
 
destination = destination | source
 
Example:
 
|            destination:    0101 |
 
|                  source:    0011 |
 
|-----------------------------------|
 
| After OR -> destination:    0111 |
 
 
 
The '''OF''' and '''CF''' flags are cleared; the '''SF''', '''ZF''', and '''PF''' flags are set according to the result.
 
The state of the '''AF''' flag is undefined.
 
 
 
 
 
<div style="padding:2px;border:1px dashed #2f6fab;background-color:#f4f4f4;">
 
Performs a bitwise inclusive OR operation between the destination (first) and source (second) operands and stores the result in the destination operand location. The source operand can be an immediate, a register, or a memory location; the destination operand can be a register or a memory location. (However, two memory operands cannot be used in one instruction.) Each bit of the result of the OR instruction is set to 0 if both corresponding bits of the first and second operands are 0; otherwise, each bit is set to 1.
 
 
 
[http://c9x.me/x86/html/file_module_x86_id_219.html c9x.me/x86/html/file_module_x86_id_219.html]
 
</div>
 
 
 
 
 
=== Command Parameters ===
 
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
 
!align="left"|Parameter
 
!style="width: 80%;background-color:white;" align="left"|Description
 
|-
 
|destination
 
|The destination operand
 
|-
 
|source
 
|The source operand
 
|}
 
 
 
 
 
== Examples ==
 
or al,1
 
 
 
or ax,1
 
 
 
or ax,1
 
 
 
or eax,1
 
 
 
or rax,1
 
 
 
or al,al
 
 
 
or ax,ax
 
 
 
or ax,ax
 
 
 
or eax,eax
 
 
 
or rax,rax
 
 
 
or [eax],eax
 
 
 
or [rax],rax
 
 
 
or [00123ABC],eax
 
 
 
or [SomeSymbol],rax
 
 
 
{{AssemblerCommandSeeAlso}}
 
 
 
{{Template:AssemblerCommandExternalLinks}}
 

Revision as of 16:05, 16 March 2019

Sorry! Content not available.