Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

microprocessor questions for practice, Assignments of Microprocessor and Interfacing

sample questions on microprocessors

Typology: Assignments

2019/2020

Uploaded on 09/21/2020

gautam-sharma-3
gautam-sharma-3 🇮🇳

1

(1)

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
MICROPROCESSOR AND INTERFACING
ASSIGNMENT NO. 1(EEN-208)
Q1. Select an ADD instruction that will :
(a) Add BX to AX
(b) Add 12H to AL
(c) Add 22H to CX
Q2 Add the data addressed by SI to AL Select an instruction that adds BX to DX and also adds
the contents of the carry flag (C) to the result.
Q3. Select a SUB instruction that will :
(a) Subtract BX from CX
(b) Subtract 0EEH from DH
(c) Subtract DI from SI
(d) Subtract the data address by SI from CH
Q5. Suppose that DS = 1200H, BX = 0100H, and SI = 0250H. Determine the address accessed by
each of the following instructions, assuming real mode operation :
(a) MOV [100H], DL
(b) MOV DL, [BX + 100H]
Q6. Suppose that DS = 1100H, BX = 0200H, LIST = 0250H, and SI = 0500H. Determine the address
accessed by each of the following instructions, assuming real mode operation :
(a) MOV CL, LIST[BX + SI]
(b) MOV CH, [BX + SI]
Q7. If AX = 1001H and DX = 20FFH, list the sum and the contents of each flag register bit(C, A, S,
Z, and O) after the ADD AX, DX instruction executes.
Q8. Develop a short sequence of instructions that adds AL, BL, CL, DL, and AH. Save the sum in
the DH register.
Q9. Develop a short sequence of instructions that adds AX, BX, CX, DX, and SP. Save the sum in
the DI register.
Q10. Write a short sequence of instructions that subtracts the numbers in DI, SI, and BP from the
AX register. Store the difference in register BX
Q 11. Suppose that DS = 1000H, SS = 2000H, BP = 1000H, and DI = 0100H. Determine the memory
address accessed by each of the following instructions, assuming real mode operation :
(a) MOV AL, [BP+DI]
(b) MOV CX, [DI]
Q12. Write a short sequence of instructions that divides the number in BL by the number in CL,
and then multiples the result by 2. The final answer must be a 16-bit number stored in the
DX register.
Q13. Select an AND instruction that will :
(a) AND BX with DX and save the result in BX
(b) AND 0EAH with DH
(c) AND DI with BP and save the result in DI
(d) AND the data addressed by BP with CX and save the result in memory.
(e) AND the data stored in four words before the location addressed by SI with DX and save
the result in DX
pf2

Partial preview of the text

Download microprocessor questions for practice and more Assignments Microprocessor and Interfacing in PDF only on Docsity!

MICROPROCESSOR AND INTERFACING

ASSIGNMENT NO. 1(EEN-208)

Q1. Select an ADD instruction that will : (a) Add BX to AX (b) Add 12H to AL (c) Add 22H to CX Q2 Add the data addressed by SI to AL Select an instruction that adds BX to DX and also adds the contents of the carry flag (C) to the result. Q3. Select a SUB instruction that will : (a) Subtract BX from CX (b) Subtract 0EEH from DH (c) Subtract DI from SI (d) Subtract the data address by SI from CH Q5. Suppose that DS = 1200H, BX = 0100H, and SI = 0250H. Determine the address accessed by each of the following instructions, assuming real mode operation : (a) MOV [100H], DL (b) MOV DL, [BX + 100H] Q6. Suppose that DS = 1100H, BX = 0200H, LIST = 0250H, and SI = 0500H. Determine the address accessed by each of the following instructions, assuming real mode operation : (a) MOV CL, LIST[BX + SI] (b) MOV CH, [BX + SI] Q7. If AX = 1001H and DX = 20FFH, list the sum and the contents of each flag register bit(C, A, S, Z, and O) after the ADD AX, DX instruction executes. Q8. Develop a short sequence of instructions that adds AL, BL, CL, DL, and AH. Save the sum in the DH register. Q9. Develop a short sequence of instructions that adds AX, BX, CX, DX, and SP. Save the sum in the DI register. Q10. Write a short sequence of instructions that subtracts the numbers in DI, SI, and BP from the AX register. Store the difference in register BX Q 11. Suppose that DS = 1000H, SS = 2000H, BP = 1000H, and DI = 0100H. Determine the memory address accessed by each of the following instructions, assuming real mode operation : (a) MOV AL, [BP+DI] (b) MOV CX, [DI] Q12. Write a short sequence of instructions that divides the number in BL by the number in CL, and then multiples the result by 2. The final answer must be a 16-bit number stored in the DX register. Q13. Select an AND instruction that will : (a) AND BX with DX and save the result in BX (b) AND 0EAH with DH (c) AND DI with BP and save the result in DI (d) AND the data addressed by BP with CX and save the result in memory. (e) AND the data stored in four words before the location addressed by SI with DX and save the result in DX

Q14. Select an OR instruction that will : (a) OR BL with AH and save the result in AH (b) OR DX with SI and save the result in SI (c) OR 1122H with BP (d) OR the data addressed by BX with CX and save the result in memory (e) OR the data stored 40 bytes after the location addressed by BP with AL and save the result in AL Q15. Select the XOR instruction that will : (a) XOR BH with AH and save the result in AH (b) XOR 99H with CL (c) XOR DX with DI and save the result in DX Q16. Develop a sequence of instructions that sets(1) the rightmost four bits of AX; clears (0) the leftmost three bits of AX; and inverts bits 7, 8 and 9 of AX. Q17. Draw the timing diagram for following instruction Address Opcode Mnemonics 0000:0400 BE 00 05 MOV SI,0500H