Question
MOV R1,#0
MOV A,#0
MOV R0,#25H
AGAIN:ADD A,#0ECH
JNC HERE
HERE: INC R1
DJNZ R0,AGAIN
MOV R0,A
END
a.
F3,02
b.
F9,01
c.
E9,01
d.
E3,02
Posted under Computer Architecture
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Calculate the jump code for again and here if code starts at 0000H MOV R1,#0 MOV A,#0 MOV R0,#25H AGAIN:ADD A,#0ECH JNC HERE HERE: INC R1 DJNZ R0,AGAIN MOV R0,A END
Similar Questions
Discover Related MCQs
Q. When the call instruction is executed the top most element of stack comes out to be
View solution
Q. LCALL instruction takes
View solution
Q. Are PUSH and POP instructions are a type of CALL instructions?
View solution
Q. What is the time taken by one machine cycle if crystal frequency is 20MHz?
View solution
Q. Find the number of times the following loop will be executed
MOV R6,#200
BACK:MOV R5,#100
HERE:DJNZ R5, HERE
DJNZ R6,BACK
END
View solution
Q. What is the meaning of the instruction MOV A,05H ?
View solution
Q. Does the two instructions mean the same?
1) BACK: DEC R0
JZ BACK
2) BACK: DJNZ RO, BACK
View solution
Q. To initialise any port as an output port what value is to be given to it?
View solution
Q. Which out of the four ports of 8051 needs a pull-up resistor for using it is as an input or an output port?
View solution
Q. Which of the ports act as the 16 bit address lines for transferring data through it?
View solution
Q. Which of the following registers are not bit addressable?
View solution
Q. Which instruction is used to check the status of a single bit?
View solution
Q. Which addressing mode is used in pushing or popping any element on or from the stack?
View solution
Q. Which operator is the most important while assigning any instruction as register indirect instruction?
View solution
Q. What is the advantage of register indirect addressing mode?
View solution
Q. Which of the following comes under indexed addressing mode?
View solution
Q. Is this a valid statement ?
SETB A
View solution
Q. When we add two numbers the destination address must always be.
View solution
Q. DAA command adds 6 to the nibble if:
View solution
Q. If SUBB A,R4 is executed, then actually what operation is being applied?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Computer Architecture? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!