HW6_S10 - doublewords and divides the sum by a single word....

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

View Full Document Right Arrow Icon
CmpE 102 – HW#6 (Spring 2010) Chapter 7 Problems 1. Indicate the hexadecimal value of AL after each shift: mov al, 6Bh shr al, 1 ; AL = shl al, 3 ; AL = mov al, 8Ch sar al, 1 ; AL = sar al, 3 ; AL = 2. Indicate the hexadecimal value of AL or AX after each rotation: stc mov al, 6Bh rcr al, 1 ; AL = rcl al, 3 ; AL = mov ax, 0FC89h rcr ax, 4 ; AX = rcl ax, 8 ; AX = 3. Indicate the hexadecimal value of each destination operand: mov ax, 7C36h mov dx, 9FA6h shld dx, ax, 4 ; DX = shrd dx, ax, 8 ; DX = 4. Write code to multiply a test value AX = 4 by 39, use the shift and addition instructions. 5. Modify the Example in Section 7.7.1 (DAA) to add four 16-bit packed decimal integers. Chapter 8 Problems 1. Explain why the LEA instruction is more powerful than the OFFSET instruction. 2. Here is a calling sequence for a procedure named Add/Divide, which adds two
Background image of page 1

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

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

Unformatted text preview: doublewords and divides the sum by a single word. push 1000h push 4000h push 50 call AddDiv Draw a picture of the procedures stack frame immediately that EBP has been pushed on the stack. 3. Declare the following local variables: a. byteArray1 that contains 50 bytes b. wordArray2 that contains 16 words c. dwordArray3 that contains 4 doublewords 4. Describe the medium memory model, including the sizes of the segments involved. 5. Declare a procedure named TripleArray that receives pointers to three doubleword arrays and another parameter indicating the total number of array elements. Other Problem 1. Show an outline of the complete structure for an embedded Assembly Language Program....
View Full Document

This note was uploaded on 09/08/2010 for the course CMPE 46 at San Jose State University .

Page1 / 2

HW6_S10 - doublewords and divides the sum by a single word....

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