You are on page 1of 2

Class test -1

Figure to right indicate marks


marks: 30)

_
(Total

1. What is the difference between SUB R and CMP R instruction?


(1)
2. The content of register A is 04H. What will be content of A register if A
register is rotate 8 times?
(2)
3. State the function of DAD H instruction
(1)
4. Explain the CMA instruction also mention addressing modes and flags
affected.
(2)
5. Write instruction to store the content of register B (32H) in memory
location 3000H using opcodes : MOV, STAX and STA
(3)
6. Explain PCHL instruction.
(1)
7. Write a program to mask lower (d3-d0 bits) of Accumulator
(1)
8. What is the use of DAA instruction
(1)
9. What is the difference between jump and call instruction
(2)
10.What is the use of XRA A instruction?
(1)
11.Explain PUSH instruction
(2)
12.How does microprocessor differentiate between data and code?
(2)
13.What is the difference between XTHL and SPHL
(2)
14.Specify the number of times the following loop will be executed?
(3)
a. MVI A,17H
b. ORA A
c. LXI
B,1000H
Loop: ORA A

MVI B, 64H

LOOP:

DCX B
RAL
JNC LOOP

LOOP: DCR B
JNC LOOP

JNZ LOOP

15.What is the significance of XCHG and PCHL instruction?


(2)
16.Identify the content of the accumulator and the flag register as the
following instruction are executed.
(2)
LXI H, 2070H
MVI M, 64H
MVI A, 8FH
CMP M

NOP

17.What is the difference between LXI 1234H and LHLD 1234H instruction?
(2)

You might also like