Digital Electronics - The 8051 Microcontroller - Discussion
Discussion Forum : The 8051 Microcontroller - General Questions (Q.No. 42)
42.
The following program will cause the 8051 to be stuck in a loop:
LOOP: | MOV A, #00H |
JNZ LOOP |
Discussion:
5 comments Page 1 of 1.
A j kiran said:
8 years ago
@@Atanu.
The loop will continue.
The loop will continue.
Juhi said:
1 decade ago
@Atanu.
Accumulator value is not zero so loop continue.
Accumulator value is not zero so loop continue.
Raghu said:
1 decade ago
@Atanu.
Its an error, Because you have not mentioned label LOP.
It'll work if you use below one:
lop:mov A,#2CH
jnz lop
Its an error, Because you have not mentioned label LOP.
It'll work if you use below one:
lop:mov A,#2CH
jnz lop
Atanu said:
1 decade ago
If it is
MOV A,#2CH
JNZ LOP
Then what will be the answer?
MOV A,#2CH
JNZ LOP
Then what will be the answer?
Chaitanya said:
1 decade ago
Actually JNZ means jump if accumilator is not zero means if accumilator is one only it jump the loop otherwise end the loop.
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers