list instruksi dalam assembly x86:

Instruction Meaning Notes Opcode
AAA ASCII adjust AL after addition used with unpacked binary coded decimal
AAD ASCII adjust AX before division 8086/8088 datasheet documents only base 10 version of the AAD instruction (opcode 0xD5 0x0A), but any other base will work. Later Intel’s documentation has the generic form too. NEC V20 and V30 (and possibly other NEC V-series CPUs) always use base 10, and ignore the argument, causing a number of incompatibilities
AAM ASCII adjust AX after multiplication Only base 10 version is documented, see notes for AAD
AAS ASCII adjust AL after subtraction Only base 10 version is documented, see notes for AAD
ADC Add with carry destination := destination + source + carry_flag
ADD Add
AND Logical AND
CALL Call procedure
CBW Convert byte to word
CLC Clear carry flag
CLD Clear direction flag
CLI Clear interrupt flag
CMC Complement carry flag
CMP Compare operands
CMPSB Compare bytes in memory
CMPSW Compare words
CWD Convert word to doubleword
DAA Decimal adjust AL after addition (used with packed binary coded decimal)
DAS Decimal adjust AL after subtraction
DEC Decrement by 1
DIV Unsigned divide
ESC Used with floating-point unit
HLT Enter halt state
IDIV Signed divide
IMUL Signed multiply
IN Input from port
INC Increment by 1
INT Call to interrupt
INTO Call to interrupt if overflow
IRET Return from interrupt
Jcc Jump if condition (JA, JAE, JB, JBE, JC, JCXZ, JE, JG, JGE, JL, JLE, JNA, JNAE, JNB, JNBE, JNC, JNE, JNG, JNGE, JNL, JNLE, JNO, JNP, JNS, JNZ, JO, JP, JPE, JPO, JS, JZ)
JMP Jump
LAHF Load flags into AH register
LDS Load pointer using DS
LEA Load Effective Address
LES Load ES with pointer
LOCK Assert BUS LOCK# signal (for multiprocessing)
LODSB Load string byte
LODSW Load string word
LOOP/LOOPx Loop control (LOOPE, LOOPNE, LOOPNZ, LOOPZ)
MOV Move copies data from one location to another
MOVSB Move byte from string to string
MOVSW Move word from string to string
MUL Unsigned multiply
NEG Two’s complement negation
NOP No operation opcode (0×90) equivalent to XCHG EAX, EAX 0×90
NOT Negate the operand, logical NOT
OR Logical OR
OUT Output to port
POP Pop data from stack POP CS (opcode 0x0F) works only on 8086/8088. Later CPUs use 0x0F as a prefix for newer instructions. 0x0F
POPF Pop data into flags register
PUSH Push data onto stack
PUSHF Push flags onto stack
RCL Rotate left (with carry)
RCR Rotate right (with carry)
REPxx Repeat MOVS/STOS/CMPS/LODS/SCAS (REP, REPE, REPNE, REPNZ, REPZ)
RET Return from procedure
RETF Return from far procedure
RETN Return from near procedure
ROL Rotate left
ROR Rotate right
SAHF Store AH into flags
SAL Shift Arithmetically left (signed shift left)
SAR Shift Arithmetically right (signed shift right)
SBB Subtraction with borrow alternative 1-byte encoding of SBB AL, AL is available via undocumented SALC instruction
SCASB Compare byte string
SCASW Compare word string
SHL Shift left (unsigned shift left)
SHR Shift right (unsigned shift right)
STC Set carry flag
STD Set direction flag
STI Set interrupt flag
STOSB Store byte in string
STOSW Store word in string
SUB Subtraction
TEST Logical compare (AND)
WAIT Wait until not busy Waits until BUSY# pin is inactive (used with floating-point unit)
XCHG Exchange data
XLAT Table look-up translation
XOR Exclusive OR

 

contoh programnya bisa berupa perkalian, pembagian, penjumlahan, dan pengurangan. berikut merupakan contoh perkalian dengan bahasa assembly.

; PROGRAM MENGALIKAN 12340567 X 23456789
; Jika diubah kedalam heksa, maka perkalian menjadi :
; BC4D57 X 165EC15

;PERKALIAN 1

MOV A, #15H
MOV B, #57H
MUL AB
MOV 59H, A
MOV 58H, B

MOV A, #15H
MOV B, #4DH
MUL AB
ADDC A, 58H
MOV 58H, A
MOV 57H, B

MOV A, #15H
MOV B, #BCH
MUL AB
ADDC A, 57H
MOV 57H, A
MOV 56H, B

;PERKALIAN 2
MOV A, #ECH
MOV B, #57H
MUL AB
ADDC A, 58H
MOV 58H, A
MOV A, B
ADDC A, 57H
MOV 57H, A

MOV A, #ECH
MOV B, #4DH
MUL AB
ADDC A, 57H
MOV 57H, A
MOV A, B
ADDC A, 56H
MOV 56H, A

MOV A, #ECH
MOV B, #BCH
MUL AB
ADDC A, 56H
MOV 56H, A
MOV A, B
ADDC A, 55H
MOV 55H, A

;PERKALIAN 3
MOV A, #65H
MOV B, #57H
MUL AB
ADDC A, 57H
MOV 57H, A
MOV A, B
ADDC A, 56H
MOV 56H, A

MOV A, #65H
MOV B, #4DH
MUL AB
ADDC A, 56H
MOV 56H, A
MOV A, B
ADDC A, 55H
MOV 55H, A

MOV A, #65H
MOV B, #BCH
MUL AB
ADDC A, 55H
MOV 55H, A
MOV A, B
ADDC A, 54H
MOV 54H, A

;PERKALIAN 4
MOV A, #1H
MOV B, #57H
MUL AB
ADDC A, 56H
MOV 56H, A
MOV A, B
ADDC A, 55H
MOV 55H, A

MOV A, #1H
MOV B, #4DH
MUL AB
ADDC A, 55H
MOV 55H, A
MOV A, B
ADDC A, 54H
MOV 54H, A

MOV A, #1H
MOV B, #BCH
MUL AB
ADDC A, 54H
MOV 54H, A
MOV A, B
ADDC A, 53H
MOV 53H, A