HW3_S10 - CmpE 102 HW#3 (Spring 2010) due Monday, 3/8...

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

View Full Document Right Arrow Icon
CmpE 102 – HW#3 (Spring 2010) – due Monday, 3/8 Chapter 4 Problems 1. The four instructions shown at the bottom of p.83 use registers and the movsx instruction to load data into eax, edx and cx registers. Perform the same results using memory operands with the movsx instruction. 2. A data segment is listed below. Write a code segment to exchange var1 and var2 data, followed by exchanging var3 and var4 data. .data var1 WORD 00FFh var2 WORD 1234h var3 WORD 55AAh var4 WORD 0FEDCh 3. Write short program to meet the following requirements: a. Use the loop instruction b. Add the contents of a 6-byte data array (byteArray) in real-address mode c. Put the result in the word variable aSum 4. For the following data segment: myBytes BYTE 40h, 50h, 60h, 80h 90h myWords WORD 64h, 100h, 0EFh, 32h, 0A0h, 18h Fill-in the requested register information for the code listed: mov esi, OFFSET myBytes mov al, [esi] ; a. AL = mov bl, [esi + 2] ; b. BL =
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

HW3_S10 - CmpE 102 HW#3 (Spring 2010) due Monday, 3/8...

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