

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
sample questions on microprocessors
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!
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