HW 2 Addressting Modes and Data Movement Instructions

  • Read Chapters 3 and 4 in the text The Intel Microprocessors Eighth Edition.
  • Participate in Discussion Question #1:  Direct Addressing
  • Participate in Discussion Question #2:  Initializing the Stack
  • Work Chapter 3 Questions and Problems 1, 9, and 29, pgs. 107-108.
  • Work Chapter 4 Questions and Problems 7, 11, and 21, pg. 154.
  • Submit homework solutions via Assignment Upload Tool. Show all work for full credit.

 

Attachments:Ch. 3 CT 312

 

1)    What do the following MOV instructions accomplish?

  1. a) MOV AX , BX
  2. b) MOV BX, AX
  3. c) MOV BL, CH
  4. d) MOV ESP, EBP
  5. e) MOV RAX, RCX

 

9)  Select an instruction for each of the following tasks

  1. a) Copy EBX into EDX
  2. b) Copy BL into CL
  3. c) Copy SI into BX
  4. d) Copy DS into AX
  5. e) Copy AL into AH
  6. f) Copy R8 into R10

 

29)  Suppose that DS = 1000H,  SS = 2000H, BP = 1000H, and D1 = 0100H.  Determine the

Memory address accessed by each of the following instructions, assuming real mode

Operation:

  1. a) MOV AL, [BP + D1]
  2. b) MOV CX, [D1]
  3. c) MOV EDX, [BP]

CH 4

7)  Identify the default segment registers assigned to the following:

  1. a) SP
  2. b) EBX
  3. c) D1
  4. d) EBP
  5. e) SI

 

 

11)  Of a MOV SI, [EAX] instruction appears in a program for the Core2 microprocessor operating

In the 16-bit instruction mode, what is its machine language equivalent?

The x86 instruction set refers to the set of instructions that x86-compatible microprocessors support. The instructions are usually part of an executable program, often stored as a computer file and executed on the processor.

 

21)  Explain what happens when the PUSH BX instruction executes.  Make sure to show where

BH and BL are stored. (Assume that SP = 0100H and SS = 0200H.)