Brutsche Assignment 5

# Brutsche Assignment 5 - PA =(DS)0(BX(AL =(DS)0 100 AL We...

This preview shows page 1. Sign up to view the full content.

Jeff Brutsche Engt 2230 Assignment 5 1. Explain the operation performed by each of the following instructions: (a) MOV AX, 0110H The value in 0110H is moved into AX (b) MOV DI, AX The contents of AX copied into DI (c) MOV BL, AL The contents of AL copied into BL (d) MOV [0100H], AX The contents of AX are copied into the memory address DS:0101H (e) MOV [BX+DI], AX The contents of AX are copied into the memory location DS +BX +DI (f) MOV [DI]+4, AX The contents of AX are copied into the memory location DS +DI +4H (g) MOV [BX][DI] + 4, AX The contents of AX are copied into the memory location DS +BX +DI 2. If the register (AX) =0010 16 , (BX) = 0100 16 and (DS) = 1000 16 , what happens if the XLAT instruction is executed?
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: PA = (DS)0 + (BX) + (AL) = (DS)0 + 100 + AL We don’t know the values in DS or AL 3. Write an instruction that will add the immediate value 111F 16 and the carry flag to the contents of the data register? ADC D, 111FH 4. Write an instruction that will mask off all but bit 3 ad bit 5 of the word of data stored at address DS: 100H. AND WORD PTR [100H], 0040H 0060H 5. Identify the condition under which the contents of AX would remain unchanged after execution of the instructions that follow: MOV CL, 4 SHL AX, CL SHR AX, CL If there are a zeros all the way to the right and all the way to the left. Because it moves everything to the left and then to the right....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online