- The
instruction is a conditional jump that follows a test.`jnz`

`jnz`

is commonly used to explicitly test for something not being equal to zero. if it is ZERO it loop exits.- jumps to the specified location.

***********************************************

solutions:////////

at the stats AL is 0000 0000H

after 1st increment AL becomes 0000 0001H (here JNZ test that AL is equal to zero ot not since AL is not equal to 0)

similar after 255 it ill be 1111 1111H (you can simply relate it like decimal value for convenience)

after 256 increment 10000 0000H (9 bit) , so discards 9 th bit an again 0000 0000H (this becomes the) now it will comes out of loop.