A1: MOV AL, 00H // Storing the value zero into the register AL, Now AL value is 00000000
INC AL // INCREMENT AL register value.
JNZ A1
The JNZ instruction transfers control to the specified address if the value in the accumulator is not 0
Step-1: AL = 0000 0000
Step-2:Next step is for increment the value of AL.
Step-3: Checking the jump condition
The above steps shall repeat until the accumulator value is not equal to zero.
→AL will keep on incrementing and after 255th iteration the value will become 1111 1111
→Again the condition is checked and incremented, now in 256th iteration AL = 1 0000 0000.
→As AL is an 8-bit register, 1 is discarded and the value becomes 0000 0000 and conditional jump to A1 occurs.
→So, total 256 iterations.