HW2-3750

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

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

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.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 01/25/2012 for the course EE 3750 taught by Professor Desouza during the Fall '08 term at LSU.

### 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
Ask a homework question - tutors are online