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 LFS instruction is used to load (read) a segment and address from memory 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 followed by an offset from the start of it.
LFS loads the Segment first in to the FS Register, then loads the Offset address into the Register provided in the first operand.
Breakdown Description 16 bit Machine
CodeLFS ; Instruction 0F B4 SI ; Register number [BX] ; A memory address from [BX]
; pointed to by BXDataAddress ; A Label address 25 C0
LFS 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 LFS SI, [BX] ; Call LFS
Alternate method
Assembly
SampleDescription MOV BX, 0x0005 ; Assign the memory address of the Pointer PUSH BX POP FS MOV SI, DataAddress ; Assign the memory address of the Pointer
; to a Register
Assembly
SampleDescription 16 bit Machine
CodeLFS SI, [BX] ; Load FS and a Register from
; the memory adress in [BX]0F B4 33