8085 Questions
8085 Questions
8085 Questions
MVI A, 05H;
MVI B, 05H;
PTR: ADD B;
DCR B;
JNZ PTR;
ADI 03H;
HLT;
At the end of program, accumulator contains
(A) 17H (B) 20H
(C) 23H (D) 05H
It is desired to multiply the numbers 0AH by 0BH and store the result in the
accumulator. The numbers are available in registers B and C respectively. A part
of the 8085 program for this purpose is given below :
MVI A, 00H
LOOP --------------HLT
END
The sequence of instructions to complete the program would be
(A) JNX LOOP, ADD B, DCR C
(B) ADD B, JNZ LOOP, DCR C
(C) DCR C, JNZ LOOP, ADD B
(D) ADD B, DCR C, JNZ LOOP
The contents of register (B) and accumulator (A) of 8085 microprocessor are 49J
are 3AH respectively. The contents of A and status of carry (CY) and sign (S)
after execution SUB B instructions are
(A) A = F1, CY = 1, S = 1 (B) A = 0F, CY = 1, S = 1
(C) A = F0, CY = 0, S = 0 (D) A = 1F, CY = 1, S = 1