Test1-3750-S04

Test1-3750-S04 - 1 EE 3750 Test 1 Wed., March 10, 2004 Open...

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

View Full Document Right Arrow Icon
OVER EE 3750 — Test 1 Wed., March 10, 2004 Open Book and Notes For all problems: state any assumptions made; include comments as needed to make assembly language instruction sequences clear. 1. (12 pts) For the instruction ADD DL, GRAY[DI+5] , where DS = 5600H, DI = 2C2H, DX = 778AH, the value of the byte in memory to which GRAY[DI+5] points is 17H, and the offset of GRAY is 202H, answer the following. (a) Give the sum and the flag settings for CF, PF, AF, ZF, SF, and OF after the addition. (b) Give the physical address of GRAY[DI+5] . 2. (17 pts) For each pair of addressing modes below, write a valid 8086 assembly instruction using the first addressing mode for the destination operand and the second addressing mode for the source operand. (a) register, register (b) direct, immediate (c) base-plus-index, immediate (d) register indirect, register (e) register, base relative-plus-index 3. (33 pts) Write an 8086 instruction sequence to calculate the factorial of a number z , where 1
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.

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

Test1-3750-S04 - 1 EE 3750 Test 1 Wed., March 10, 2004 Open...

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