EEE-324 module 4 feedback forum

EEE-324 module 4 feedback forum

by Jahid Hossain -
Number of replies: 0

1.Firstly we learn CMP instruction,which compares two operands. It is generally used in conditional execution.

2. Than the JMP instruction which performs an unconditional jump. Such an instruction transfers the flow of execution by changing the instruction pointer register.

3.Conditional Jump instructions like JE which defines jump equal ,JNE=Jump not equal,JG=jump greater,JL=jump less and also many conditional instruction which help us to compare two or three variables that is greater or less or equal

4.And then The JMP instruction can be used for implementing loops. For example, the following code snippet can be used for executing the loop-body 10 times.

MOV	CL, 10
L1:
<LOOP-BODY>
DEC	CL
JNZ	L1

The processor instruction set, however, includes a group of loop instructions for implementing i. The basic LOOP instruction has the following syntax −

LOOP 	label
5.If ,else and endif conditions
6.From the help of a ascii code we can easily print A to Z and 0 to 9 use of loop and other conditions