16 bit Assembly
ADC - Add with Carry
ADD - Add
AND - Bitwise AND
CALL - Call Routine
CLC - Clear Carry Flag
CLD - Clear Direction
CLI - Clear Interupt Flag
CMPS - Compare
CMP - Compare
DEC - Decrement
DIV - Divide
HLT - Halt
IDIV - Divide Signed
IMUL - Multiply Signed
INC - Increment
INS - Input
INT - Interupt
IN - Input
IRET - Interupt Return
JMP - Jump
J - Jump Conditional
LAHF - Load Flags
LDS - Load Far Pointer
LEA - Store Address
LES - Load Far Pointer
LFS - Load Far Pointer
LGS - Load Far Pointer
LODSB - LODSW - Load
LODS - Load
LOOP - Loop
LSS - Load Far Pointer
MOVSB - Move Far
MOVSW - Move Far
MOVS - Move
MOV - Move
MUL - Multiply
NEG - Negate
NOP - No Operation
NOT - Bitwise NOT
OR - Bitwise OR
OUTS - Output
OUT - Output
POP - Stack Retrieval
PUSH - Stack Store
RCL - Roll Left
RCR - Roll Right
REP - Repeat
RET - Return
ROL - Roll Left
ROR - Roll Right
SAHF - Save Flags
SAL - Shift Left
SAR - Shift Right
SBB - Subtract with Borrow
SCAS - Compare
SET - Set Condition
SHL - Shift Left
SHR - Shift Right
STC - Set Carry Flag
STD - Set Direction
STI - Set Interupt Flag
STOSB - STOSW - Store
STOS - Store
SUB - Subtract
TEST - Compare
XADD - Exchange and And
XCHG - Swap
XOR - Bitwise XOR
The OR Instruction performs an OR action with the second operand on the first operand.
The first operand holds the result of this operation. All matching bits of 0 are retained, all other non-matching bits and 1's become 1.
However 2 memmory addresses cannot be used together.
This command has 3 parts, Instruction, then either operand can be a Register or Immediate value or a memory address.
Assembly
SampleDescription 16 bit Machine
CodeOR AL, 0x03 ; 8 bit immediate number with AL 0C 03 OR AX, 0x0003 ; 16 bit immediate number with AX 0D 03 00 OR BL, 0x03 ; 8 bit immediate number with Register 80 C3 03 OR BX, 0x0003 ; 16 bit immediate number with Register 81 CB 03 00 OR [BX], 0x03 ; 8 bit immediate number with memory address 80 0F 03 OR [BX], 0x0003 ; 16 bit immediate number with memory address 81 0F 03 00 OR AL, BL ; 8 bit Registers 08 D8 OR BL, AL ; 8 bit Registers 0A D8 OR AX, BX ; 16 bit Registers 09 D8 OR BX, AX ; 16 bit Registers 0B D8 OR [BX], AX ; Register to memory address 09 07 OR AX, [BX] ; Memory address to Register 0B 07 OR [BX+2], AX ; Register to 09 47 02 OR AX, [BX+2] ; Memory address and offset to Register 0B 47 02