Вы находитесь на странице: 1из 2

MICROPROCESSOR AND INTERFACING

ASSIGNMENT NO. 1(EEN-208)

Q1. What physical address is represented by :


(a) 4370:561EH
(b) 7A32: 0028H
Q2. If the stack segment register contains 3000H and the stack pointer register contains 8434H,
what is the physical address of the top of the stack?
Q3. Describe the operation that an 8086 will perform when it executes each of the following
instructions :
(a) MOV BX, 02FFH
(b) MOV AL, 0DBH
(c) MOV DH, CL
(d) MOV BX, AX
Q4. Write the 8086 assembly language statement which will perform the following operations :
(a) Load the number 7986H into the BP register.
(b) Copy the BP register contents to the SP register.
(c) Copy the contents of the AX register to the DS register.
(d) Load the number F3H into the AL register.
Q5. If the 8086 execution unit calculates an effective address of 14A3H and DS contains 7000H,
what physical address will the BIU produce?
Q6. If the data segment register (DS) contains 4000H, what physical address will the instruction
MOV AL, [234BH] read?
Q7. If the 8086 data segment register contains 7000H, write the instruction that will copy the
contents of DL to address 74B2CH.
Q8. Describe the difference between the instructions MOV AX, 2437H and MOV AX, [2437H].
Q9. Given the register contents in figure 1 answer the following questions:
(a) What physical address will the next instruction be fetched from?
(b) What is the physical address for the top of the stack?

Registers DATA Memory Location DATA


ES 6000 5000CH D7
CS 4000 5000BH 9A
SS 7000 5000AH 7C
DS 5000 50009H DB
IP 43E8 50008H C3
SP 0000 50007H B2
BP 2468 50006H 49
SI 4C00 50005H 21
DI 7D00 50004H 89
50003H 71
50002H 22
50001H 4A
50000H 3B

AH AL BH BL
AX 42 35 BX 07 5A

CH CL DH DL
CX 00 04 DX 33 02
Figure 1 8086 register and memory contents for Problems 7, 8, and 10.
Q10. Describe the operation and results of each of the following instructions, given the register
contents shown in figure 1. Include in your answer the physical address or register that each
instruction will get its operands from and the physical address or register in which each
instruction will put the result. Assume that the following instructions are independent, not
sequential, unless listed together under a letter.

a. MOV AX, BX k. OR CL, BL


b. MOV CL, 37H l. NOT AH
c. INC BX m. ROL BX, 1
d. MOV CX, [246BH] n. AND AL, CH
e. MOV CX, 246BH o. MOV DS, AX
f. ADD AL, DH p. ROR BX, CL
g. MUL BX q. AND AL, OFH
h. DEC BP r. MOV, AX, [BX]
i. DIV BL s. MOV [BX][SI], CL
j. SUB AX, DX
Q11. Show the result that will be in the affected registers or memory locations after each of the
following groups of instructions executes. Assume that each group of instructions starts with
the register and memory contents shown in figure 1.

a. ADD BL, AL d. MOV BX, 000AH


MOV [0004], BL MOV AL, [BX]
b. MOV CL, 04 SUB AL, CL
ROR DI, CL INC BX
c. ADD AL, BH MOV [BX], AL
DAA
Q12. Write the 8086 instruction which will perform the indicated operation.
(a) Copy AL to BL
(b) Load 43H into CL.
(c) Increment the contents of CX by 1.
(d) Copy SP to BP
(e) Add 07H to DL.
(f) Multiply AL times BL.
(g) Copy AX to a memory location at offset 245AH in the data segment.
(h) Decrement SP by 1.
(i) Rotate the most significant bit of AL into the least significant bit position.
(j) Copy DL to a memory location whose offset is in BX.
(k) Mask the lower 4 bits of BL
(l) Set the most significant bit of AX to a 1, but do not affect the other bits.
(m) Invert the lower 4 bits of BL, but do not affect the other bits.

Вам также может понравиться