Test1soln-3750-F09

Test1soln-3750-F09 - EE 3750 Test 1 solutions 1 EE 3750...

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

View Full Document Right Arrow Icon
EE 3750 — Test 1 solutions 1 EE 3750 — Test 1 solutions Fall 2009 1. (20 pts) Given the register and memory contents listed below, do the following for the instruction ADD BX, [DI+9]: (a) identify the addressing mode of the memory operand, (b) give the effective address of the memory operand, (c) show the contents of the destination operation after the addition, (d) give the flag settings for CF, PF, AF, ZF, SF, and OF after the addition, and (e) specify how many memory reads and memory writes are performed. Contents: All integer contents are written in hexadecimal. Let BX = A2E1, DI = 5C00, and let each byte in memory hold 18. (a) register relative (b) effective address = 5C09 (= 5C00 + 9) (c) BX = BAF9 (= A2E1 + 1818) (d) CF = 0, PF = 1, AF = 0, ZF = 0, SF = 1, OF = 0 (e) 1 memory read, 0 memory writes 2. (30 pts) Write 8086 assembly language instruction sequences to implement the equation below, making the specified assumption about data types in (a), (b), and (c). blue ! black " green ( ) # white yellow (a) all variables are signed words, (b) all variables are unsigned words, and (c) all variables are unsigned bytes. (a)
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 / 3

Test1soln-3750-F09 - EE 3750 Test 1 solutions 1 EE 3750...

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