Professional Documents
Culture Documents
Branch: Computer Science & Engineering Semester: Vi Subject: Microprocessor & Assembly Language Programming (4KS04) Unit-I
Branch: Computer Science & Engineering Semester: Vi Subject: Microprocessor & Assembly Language Programming (4KS04) Unit-I
Branch: Computer Science & Engineering Semester: Vi Subject: Microprocessor & Assembly Language Programming (4KS04) Unit-I
UNIT-I
UNIT-II
1. What is addressing mode? Explain all addressing modes with example in 8086
microprocessor.
2. Write a short note on following instructions with example.
1)XCHG 2)DAS 3)NEG 4)AAS 5)CMP 6)XLAT
7) IMUL 8) DAA
3.Categories various memory operand addressing modes of 8086 with suitable example.
4. State and Explain arithmetic group instructions of 8086.
5. Explain data transfer group instructions of 8086.
6. Explain Instruction format used in 8086.
7. Identify the addressing modes used in instruction and justify it.
a. Mov AL,BL b. Mov AX,OFFH c. Mov [DI],AX d. Mov DI,[SI]
e. Mov [BX]+0400H,CX f. Mov [DI]+0400H,AH g. Mov[BX][DI]+0400H,AL
8. Explain addressing modes
a. Relative base index register addressing mode
b. Register indirect addressing mode
c. register direct addressing mode
9. Write program to move the content of memory location 0500H to register BX to CX at
immediate bit 05H to data residing in memory location. how whose address computed using
DS=2000H and offset=0600H.store result of addition in 0700H assume that data is located in
segment specified by data segment register DS which contain 2000H.
10. Memory location 00490H through 00493H contains respectively 0A,9C, 82 and 78. What
does AX contain after each instruction? (Assume that SI contains 0490H and BP contains
0002H)
MOV Ax, [SI]
MOV Ax, [SI + 1]
MOV Ax, [SI] +[BP]
11. Assuming (AX) = 0010H, (BX) = 0100H and (DS) - 1000H. What happen if the
XLAT
instruction is executed.
12. Two byte sized register are stored at symbolic offset address: NUM1 and NUM2
respectively. Write instruction to generate their difference and store it at NUM3.The
difference is to be performed by subtracting the value at NUM1 that the at NUM2' Assume
that all storage location are in the current data segment.
13. Given that (BX) = 637D, (SI) = 2A98, Displacement = C237. Determine the effective
address if applicable resulting from these register and addressing mode:
i) Immediate Addressing mode ii) Direct Addressing mode
iii) Register using BX. iv) Register indirect using BX
v) Register relative using BX. vi) Based indexed addressing mode
vii) Based Indexed relative addressing mode
14. Explain and list the instruction set of 8086 microprocessors.
15. What is direct addressing mode? Explain with example.
16. Write a program to perform addition of two 16-bit numbers stored in Ax=1234H and
BX=ABCDH using 8-bit register. Make use of ADC instruction.
17. Write a program to perform subtraction of two 16-bit numbers stored in Ax=ABCDH and
BX=1234H using 8-bit register. Make use of SBB instruction.
UNIT-III
14. Given DL=8D H ,CL=03H and CF=1.Determine the result after executing the following
instruction.
(i)SHL DL,CL (ii)SAR DL,CL (iii)RCR DL,CL (iv)RCL DL,CL
15. Explain the shift and rotate instructions with examples.
16. Add the contents of the memory location 2000H:0500H to the contents of 3000H:0600H Store the result in
5000H:0700H.
17. Write a program to set the Data segment to 1000H, Extra segment to 2000H Stack
segment to 3000H and Code segment to 4000H.
UNIT-IV
UNIT-V
UNIT-VI