Question: For all questions use the following data: Let X = Last 4 digits of your roll number in HEX (For example: If your Roll

For all questions use the following data: Let X = Last 4 

For all questions use the following data: Let X = Last 4 digits of your roll number in HEX (For example: If your Roll No is LXX-1234 then X=1234H) ; Use MOV instruction to move value to the register/memory AX=X BX=X+4 DS: [1201H]=X+AH DS: [1200H] = X + 8H SI = 1212H DS = 1000H DX = OFOFH Q No.1: Explain the solution to the following questions with result value in comments after each instruction: a) Develop a short sequence of instructions that adds AX, BX, CX, DX, and SP. Save the sum in the DI register. b) Write a short sequence of instructions that subtracts the numbers in DI, SI, and BP from the DS: [1200H]. Store the difference in register BX. When two 8-bit numbers are multiplied, where is the product found? Write a short sequence of instructions that divides the number in BL by the number in CL and then multiplies the resulting quotient by 2. The final answer must be a 16-bit number stored to be stored later in the DX register. c) d) e) Select an AND instruction that will AND the data addressed by BP with CX and save the result in memory. f) Select an OR instruction that will OR DX with DS: [1201H] and save the result in SI. g) Select the XOR instruction that will XOR 99H with CL. h) What is the difference between the NOT and the NEG instruction?

Step by Step Solution

3.40 Rating (169 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a ADD AXBX adding BX to AX ADD AXCX adding CX to AX ADD AXDX adding DX ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

635def98aeaed_180114.pdf

180 KBs PDF File

Word file Icon

635def98aeaed_180114.docx

120 KBs Word File

Students Have Also Explored These Related Banking Questions!