HW2-3750 - 1 EE 3750 Homework 2 due Wed., March 3, 2004 For...

1OVEREE 3750 — Homework 2due Wed., March 3, 2004For all problems: state any assumptions made; include comments as needed to make assemblylanguage instruction sequences clear.1. Given the register and memory contents listed below, list the changed registers andmemory locations and their contents after each instruction below executed in sequence. You canidentify memory locations by variable name or effective address.Contents: All integers in this problem are written in hexadecimal. Let AX = 9014, BX =8B77, CX = 00C4, DX = 1744, SP = 266, SI = 362, DI = 440, DS = 5000, ES = 6500, contentsof the word at the top of the stack = 3234, contents of the word pointed to by DS:[SI+6] = 8080.ADD AX, BXADC DX, CXLEA DI, [SI+6]STOSWXCHG CH, CL2. In the following equation, variable Q is a word variable and all other variables are bytes.QRSTUV←−+∗(a) Write an 8086 instruction sequence to compute the equation assuming that the values are givenas unsigned binary integers.

This preview
has intentionally blurred sections.
Sign up to view the full version.