Digital Electronics - The 8051 Microcontroller - Discussion

Discussion Forum : The 8051 Microcontroller - General Questions (Q.No. 26)
26.
This program code will be executed once:
STAT: MOV A, #01H
 JNZ STAT
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
7 comments Page 1 of 1.

Sujata said:   1 decade ago
Here 01h will get stored in acc, it is not a counter

Sundar said:   1 decade ago
This code will hang down the processor.

JNZ - Jump if NOT Zero.

But, A will hold value 1 (not zero condition satisfies), so continuous loop will occur.

Amaravathi said:   1 decade ago
The loop will occur.

Shivani said:   1 decade ago
JNZ-jumpnonzero is a loop command..
display the output until its be zero..
here the accumulator just get the input as one..
(1)

Vishnu said:   1 decade ago
Infinite loop will generate.

Manjusha Bhosale said:   10 years ago
Yes agree with @Vishnu. Infinite loop will generate.

Mahesh said:   9 years ago
Agree @Vishnu. An infinite loop will generate.

Post your comments here:

Your comments will be displayed after verification.