X86-assembly/Instructions/or
Jump to navigation
Jump to search
You are here: | or
|
Description
- The or instruction performs a logical OR operation.
- This is the equivalent to the "|" (pipe) operator in python:
>>> hex(0x18 | 0x7575) '0x757d'
Syntax
or destination, value
Example
mov eax, 0x18 ;11000 in binary or eax, 0x7575 ;111010101110101 in binary The above example will store 0x757D (0111010101111101 in binary) into EAX. |
00000000 00011000 01110101 01110101 ----------------- 01110101 01111101 |