5,926 views

5 Answers

Best answer
10 10 votes
256. AL is incremented 1 in each iteration and after 256 increments, it becomes 0 again as AL register is 8 bits.

When AL=0000 0000 and CY=1,  JNZ will be false. JNZ means jump when previous operation set Zero flag and not jump when previous operation did not set zero flag. So control comes out of loop after 256 iterations.
• selected by
1 1 vote
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.
0 0 votes
Answer would be D Since AL = 00H =0000 0000 H after incrementing it every time it will be 0000 0001 0000 00010 .... 1111 1111 (highest value ) and then again incrementing will make result back 0000 0000 with Cy 1 so loop doesnt end and the process goes on !
0 0 votes

Answer would be D Since AL = 00H =0000 0000 H after incrementing it every time it will be 0000 0001 0000 00010 .... 1111 1111 (highest value ) and then again incrementing will make result back 1111 1111 bcoz increment decrement would not impact if values are at extreme, so loop doesnt end and the process goes on !

Answer:
Position:
Show:

Related questions

3 3 votes
2 answers 2 answers
4.5k
4.5k views
Misbah Ghaya asked Apr 27, 2016
4,535 views
In 8085 microprocessor, the ISR for handling trap interrupt is at which location?$3CH$$34H$$74H$$24H$
2 2 votes
3 answers 3 answers
5.6k
5.6k views
Misbah Ghaya asked Apr 27, 2016
5,648 views
In $8086$, the jump condition for the instruction $JNBE$ is?CF = 0 or ZF = 0ZF = 0 and SF = 1CF = 0 and ZF = 0CF = 0
6 6 votes
2 2 answers
4.8k
4.8k views
Misbah Ghaya asked Jun 5, 2016
4,837 views
In graphics, the number of vanishing points depends onThe number of axes cut by the projection planeThe center of projectionThe number of axes which are parallel to the p...
3 3 votes
1 answers 1 answer
7.4k
7.4k views
Misbah Ghaya asked Jun 5, 2016
7,375 views
The built-in base class in java, which is used to handle all exceptions isRaiseExceptionErrorThrowable