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 |
Discussion:
7 comments Page 1 of 1.
Mahesh said:
9 years ago
Agree @Vishnu. An infinite loop will generate.
Manjusha Bhosale said:
10 years ago
Yes agree with @Vishnu. Infinite loop will generate.
Vishnu said:
1 decade ago
Infinite loop will generate.
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..
display the output until its be zero..
here the accumulator just get the input as one..
(1)
Amaravathi said:
1 decade ago
The loop will occur.
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.
JNZ - Jump if NOT Zero.
But, A will hold value 1 (not zero condition satisfies), so continuous loop will occur.
Sujata said:
1 decade ago
Here 01h will get stored in acc, it is not a counter
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers