In experiment number 4, we basically learn about using Loop and Conditional jumps in Assembly Language.
Conditional jumps on the 8086 processors cannot reference a label more than 32 kilo-bytes away. A conditional jump instruction, like "JE" (jump-if-equal), does a go-to somewhere if the two values satisfy the right condition. For example, if the values are equal, subtracting them results in zero, so "JE" is the same as "JZ".
There is suck kind of instruction here, like-
- CMP instruction
- JMP instruction
- Conditional Jump instructions.
In CMP instruction, CMP AX, BX subtracts BX from AX but the result is not saved to any register. Just flags are affected. Also In JMP instruction, JMP loads IP with the new address to run the next instruction from a new location. And In Conditional Jump instruction, JE, JNE, JG, JL, JNG, JNL are examples of the conditional jump.