CSCI212week5questions - CSCI 212 Spring 2010 semester Week...

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

View Full Document Right Arrow Icon
CSCI 212 Spring 2010 semester Week 5 questions Use the following data definitions for questions 1 through 7: byte1 BYTE 0FFh,1,2 byte2 BYTE 14h word1 WORD 0FFFFh,1,2 word2 WORD 3 word3 SWORD 7FFFh,8000h word4 SWORD 9000h dword1 DWORD 10h,20h,30h,40h dArray DWORD 10 DUP(?) 1. Write one or more statements that move the contents of word1 to word2 . 2. For each of the following instructions, indicate whether it is legal (L) or illegal (I): a. mov byte2,0FFh b. mov word1,byte2 c. mov word2,10000h d. mov si,word1 3. For each of the following instructions, indicate whether it is legal (L) or illegal (I): a. movzx ax,byte1 b. movzx edx,bl c. movzx word2,al d. movsx dl,al 4. Indicate the hexadecimal value of the destination operand next to each instruction. Use the letter I to indicate that a particular instruction is illegal: mov dx,word3 a. movsx eax,byte1 b. mov dh,al c. mov bx,dx d. 5. Indicate the hexadecimal value of the destination operand next to each instruction. Use the letter I to indicate that a particular instruction
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.

This note was uploaded on 04/27/2010 for the course CSCI 112 taught by Professor Dfg during the Spring '10 term at Community College of Denver.

Page1 / 3

CSCI212week5questions - CSCI 212 Spring 2010 semester Week...

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