Professional Documents
Culture Documents
BY MO3AZ
General Registers
16 bit
AX AH AL
BX BH BL
CX CH CL
DX DH DL
8 bit 8 bit
MO3AZ SAIF
More Instructions
MOV AX , 5h Used to move data from the source to the destination operand ( AX = 5h )
ADD , SUB ( Adds , Subtracts ) the source operand to the destination operand.
MO3AZ SAIF
Variables
Name Size Initial Value
DB DW
1 Byte 2 Byte
X DB 10H SUM DW ?
Null Value
MO3AZ SAIF
Arrays
Name Size of each element Initial Value
DB DW
1 Byte 2 Byte
MO3AZ SAIF
I/O Instructions
INT 21H
MO3AZ SAIF
Conditions
CMP AX , BX Compare AX with BX and jump to the
EQ label if equal. Use JE (Jump if
Equal) instruction
JE EQ
------
------
JMP END_IF Jump to End_If Label to end Program
EQ:
------ Labels used as markers for specific
------ locations in the code
END_IF:
RET
MO3AZ SAIF
LOOPS
Cx Register => Counter of LOOP
MO3AZ SAIF
Playlists Link
Mohamed Reda
Ahmed Sallam
Sherif Ezzat
MO3AZ SAIF