in ISRO
1,309 views
0 votes
0 votes
how many no of times the instruction sequence below will loop before coming out of loop?

A1;  MOV AL,00H

      INC AL

      JNZ A1
in ISRO
1.3k views

1 Answer

4 votes
4 votes
It will run infinite time, because in each step you are loding 00H into accumulater and incrementing it and checking that, jump if accumulator is not zero. It will never be zero. It will always be 1.
by

3 Comments

OBTIONS ARE:

1. 1

2. 255

3. 256

4. WILL COME OUT OF LOOP

 

WHICH ONE EXCATLY?from given obtions?
0
0

@neha

If the code is as follows 

     MOV AL,00H

A1:  INC AL

     JNZ A1

Then it will run 256 times. else It will never come out of loop. 

0
0
rude kindly give  reference or link of  some material regarding 8085
0
0

Related questions

0 votes
0 votes
3 answers
2
anonymous asked in Algorithms Jun 14, 2017
1,203 views
anonymous asked in Algorithms Jun 14, 2017
by anonymous
1.2k views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

64.3k questions

77.9k answers

244k comments

80.0k users