HW2-3750

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

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 OVER EE 3750 — Homework 2 due Wed., March 3, 2004 For all problems: state any assumptions made; include comments as needed to make assembly language instruction sequences clear. 1. Given the register and memory contents listed below, list the changed registers and memory locations and their contents after each instruction below executed in sequence. You can identify 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, contents of the word at the top of the stack = 3234, contents of the word pointed to by DS:[SI+6] = 8080. ADD AX, BX ADC DX, CX LEA DI, [SI+6] STOSW XCHG CH, CL 2. In the following equation, variable Q is a word variable and all other variables are bytes. Q RS T UV + (a) Write an 8086 instruction sequence to compute the equation assuming that the values are given as unsigned binary integers.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

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

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online