2230TEST2

2230TEST2 - ASSEMBLY LANGUAGE PROGRAMMING EET 2230(995)...

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

View Full Document Right Arrow Icon
EET 2230(995) TEST # 2 , SPRING 2006 NAME: Jeff Brutsche STUDENT ID: NOTE: THERE ARE FIVE QUESTIONS. ALL QUESTIONS CARRY EQUAL MARKS Q1. Encode the following instructions by explaining the reason for each bit to be a 0 or 1. Show each step while choosing the Opcode, choosing various fields such as d, w, r/m, Mod etc. Each code goes opcode, d, w, mod, reg, r/m. 1. MOV [BX][DI] + CBAD 16 , AH 1000100010100001 = 88A1H 10001000 Byte 1 The move operand is specified as 100010, because it is a move function. The next part of the first bit is if the register for the first operand is specified by byte 2. Which is 0. The data size bit specifies whether the operation will be performed on 8 or 16 bit data. 0 for 8 and 1 for 16, it is a 0. 10100001 Byte 2 The Mod is 10 The REG is 100 The R/M is 001 2. MOV AH, [BX][SI] + B000 16 1000101010100000 = 8AA0H 10001010 Byte 1 Opcode is 100010. D is a 1.
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/19/2008 for the course EET 2230 taught by Professor Niamat during the Spring '08 term at Toledo.

Page1 / 4

2230TEST2 - ASSEMBLY LANGUAGE PROGRAMMING EET 2230(995)...

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