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 LDS instruction is used to load (read) a segment and Far address from a memory location into registers. The memory address most hold the Segment and Offset address.
This command has 3 parts, Instruction, Register, and a 32 bit memory address made up of 16 bit Segment number and a 16 bit offset address.
LDS loads the offset address into the Register provided in the first operand, then the Segment into the DS Register.
Breakdown Description 16bit Machine
CodeLDS ; Instruction C5 SI ; Register for the offset address
; See below[BX] ; A memory address from [BX]
; pointed to by BXDataAddress ; A Label address
LDS using a memory address
Assembly
SampleDescription MOV BX, 0x0345 ; Assign the memory address of the Pointer or MOV BX, DataAddress ; Assign the memory address of the Pointer LDS SI, [BX] ; Call LDS
Alternate method
Assembly
SampleDescription MOV BX, 0x0005 ; Assign the memory address of the Pointer PUSH BX POP DS MOV SI, DataAddress ; Assign the memory address of the
; Pointer to SI Register
Assembly
SampleDescription 16 bit Machine
CodeLDS SI, [BX] ; Load DS and SI from the memory
; address in [BX]C5 33