Question: Part 2 : Arithmetic Instructions 1 . Assemble the following instruction into memory at address CS: 1 0 0 and verify the instruction is at

Part 2: Arithmetic Instructions 1. Assemble the following instruction into memory at address CS:100 and verify the instruction is at the location. How many bytes of memory does the instruction take up? ADC AX,[0BCD]2. Initialize the word content at DS:0BCD with the value A00AH and then verify the value is at the location. 3. Initialize register AX with the value 0002H.4. Set the carry flag to 1.5. Execute the instruction in 1 with the TRACE command. Describe what the instruction did. Did a carry-out occur? 6. Assemble the following instruction into memory at address CS:100 and then verify the instruction is at the location. How many bytes of memory does the instruction take up? SBB [SI], BX 7. Initialize the word content at DS:ABC0 with the value FFFFH and then verify the value is at the location. Initialize BX with DDDDH.8. Clear the carry flag. 9. Execute the instruction in 6 with the TRACE command. Describe what the instruction did. Did a borrow occur? 10. Describe what DAA does. 11. Assemble and execute the following sequence of instructions. MOV AL,73H MOV BL,48H ADD AL, BL 12. If we assume that both AL and BL store data in BCD, what would you expect for the sum after you add AL with BL in 11? Did you get the sum that you would expect? 13. If you didnt get the sum you would expect, explain why you didnt get the expected sum. 14. Revise the sequence of instructions in 11 to obtain the sum that you would expect if you assume that both AL an BL store data in BCD.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Programming Questions!