{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Brutsche Assignment 2

# Brutsche Assignment 2 - and Fig.3-6 in the text book(a MOV...

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

Jeff Brutsche Engt 2230 Assignment 3 1) Write an instruction that will move the immediate operand ABCD 16 into AX register. Describe the operation performed by executing the move instruction. MOV AX, ABCD 16 2) Identify the addressing modes used for the source and the destination operands in the instructions that follow. (a) MOV CX, 0AE 16 (b) MOV [DI], AH (c) MOV [BX][DI] + 0D0F 16 , AH Also find the physical addresses of the specified operands if the register contents and variables are as follows: (CS) = 0A00 16 , (DS) =0B00 16 , (SI) = 0100 16 , (DI) =0200 16 and (BX) =0300 16 . (a) Destination Operand of the instruction in (b) (b) Destination Operand of the instruction in (c) a) Register to Resister b) Immediate to Register c) Register to Base-indexed a) CX b) BX DI 2) Encode the following instructions using the information in Figs.4-1 through 4-5

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: and Fig.3-6 in the text book. (a) MOV CX, 0AE 16 (b) MOV [DI], AH (c) MOV [BX] [SI], BX a) 10001011111111111 b) 1000100100011000 c) 1000101011001101 3) What is the difference in the operation of the following instructions? (a) MOV DI, AX and MOV [DI], AX (b) MOV BX, SI and MOV [BX], SI and MOV BX, [SI] a) The first one means move the contents of AX to DI. The second one means move the element from AX to DI, the destination block. b) The first one means move the contents of SI to BX. The second means add the contents SI to BX. The third means add the contents of SI to BX. 4) Encode all the five instructions in the above question 4 (a) and 4(b). a) First - 8ED8 16 Second - 8825 16 b) First - 8A24 16 Second – 8A2A 16 Third – 8A24 16...
View Full Document

{[ snackBarMessage ]}