In this experiment, i learnt how to using loop and conditional jumps in assembly language.
Jump Instructions are used for changing the flow of execution of instructions in the processor . In these types of instructions, the processor must check for the particular condition. If it is true, then only the jump takes place else the normal flow in the execution of the statements is maintained.
IF (A>B)
X=0
else X=1
JG = Jump if grater
JNG=Jump if not grater
JL=Jump if less
JNL=Jump if not less
JE=Jump if equal
JNE=Jump if not equal
I also learnt from this experiment, how to print numbers from A to Z using loop function. The JMP instruction can be used for implementing loops. I learnt print highest of three numbers stored in A,B,C variables.
i can print Capital letter A to Z By using this example
Example:
.model small
.stack 100h
.code
main proc
mov dl,65
mov cx,26
mov ah,2h
L1: int 21h
inc dl; dl=dl+1
dec CX; c=cx-1
cmp cx,0
jne L1
main endp
end main