You are on page 1of 5

Section 7 assembly

Instructions :
1- ADD EX: ADD AL,5
2- SUB EX: SUB 03H 02H
3- CMP -----> same as sub but there is
no result it just affects on the flag registers
4- AND,OR,XOR,TEST
EX :
MOV AL,0
MOV AH,1
AND AH,AL
Note TEST is the same as and but there is no
result it just affects on flag registers
5- MUL,DIV,IMUL,IDIV
6- INC,DEC (like ++ and -- in C#)
They affect on flag registers
7- NOT ---> doesn’t affect on flag register
(inverse one to zero and vice versa)
8- NEG ---> find 2’s complement
It does affect on flag register
9- JMP (transfer control)
Syntax:
JMP LABEL_NAME
….
..
.
LABEL_NAME:
….
..
10- conditional jump for signed numbers:-

11- conditional jump for unsigned numbers


12- LOOP LABEL_NAME
Initialize cx with a number
Decrease cx
Jump to the label until the cx register
reaches zero
Now your task is
Writing program which
1- check if the number is even or odd
2- convert string from capital to small
and vice versa
the solution exists below :
https://web.microsoftstream.com/video/06
365ac1-0b70-4d5b-b312-5ed4b55a7dee

You might also like