assignment 1 advance processors dl-15082011

2
Assignment I Advance Processors Answer the following questions Que-1 What physical address is represented by: a. 4370:561EH b. 7A32:0028H Que-2 Describe the operation that an 8086 will perform when it executes each of the following instructions: a. MOV BX,03FFH b. MOV AL,0DBH c. MOV DH,CL d. MOV BX,AX Que-3 Write the 8086 assembly language statement which will perform the following operations: Que-4 If the 8086 execution unit calculates an effective address of 14A3H and DS contains 7000H, what physical address will the BIU produce? Que-5 If the data segment register (DS) contains 4000H what physical address will the instruction MOV AL,[234BH] read? Que-6 If the 8086 data segment register contains 7000H, write the instruction that will copy the contain of DL to the address 74B2CH. Que-7 Describe the difference between the instruction MOV AX, 2437H and MOV AX,[2437H]. Que-8 Given the register contents in following table, answer the following question: a. What physical address will the next instruction be fetched from? b. What is the physical address for the top of the stack? DATA SEGMENT ES 6000 5000CH D7 CS 4000 5000BH 9A SS 7000 5000AH 7C DS 5000 50009H DB IP 43E8 50008H C3 SP 0000 50007H B2 BP 2468 50006H 49 SI 4C00 50005H 21 DI 7D00 50004H 89 50003H 71 50002H 22 50001H 4A 50000H 3B AH AL BH BL AX 42 35 BX 07 5A CH CL DH DL CX 00 04 DX 33 02 8086 Register and memory contents Que-9 Show the result that will be in the affected resisters or memory locations after each the

Upload: kalpeshchandak

Post on 06-Mar-2015

210 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Assignment 1 Advance Processors DL-15082011

Assignment I

Advance Processors

Answer the following questions

Que-1 What physical address is represented by:

a. 4370:561EH

b. 7A32:0028H

Que-2 Describe the operation that an 8086 will perform when it executes each of the following

instructions:

a. MOV BX,03FFH

b. MOV AL,0DBH

c. MOV DH,CL

d. MOV BX,AX

Que-3 Write the 8086 assembly language statement which will perform the following operations:

Que-4 If the 8086 execution unit calculates an effective address of 14A3H and DS contains 7000H,

what physical address will the BIU produce?

Que-5 If the data segment register (DS) contains 4000H what physical address will the instruction

MOV AL,[234BH] read?

Que-6 If the 8086 data segment register contains 7000H, write the instruction that will copy the

contain of DL to the address 74B2CH.

Que-7 Describe the difference between the instruction MOV AX, 2437H and MOV AX,[2437H].

Que-8 Given the register contents in following table, answer the following question:

a. What physical address will the next instruction be fetched from?

b. What is the physical address for the top of the stack?

DATA SEGMENT

ES 6000 5000CH D7

CS 4000 5000BH 9A

SS 7000 5000AH 7C

DS 5000 50009H DB

IP 43E8 50008H C3

SP 0000 50007H B2

BP 2468 50006H 49

SI 4C00 50005H 21

DI 7D00 50004H 89

50003H 71

50002H 22

50001H 4A

50000H 3B

AH AL BH BL

AX 42 35 BX 07 5A

CH CL DH DL

CX 00 04 DX 33 02

8086 Register and memory contents

Que-9 Show the result that will be in the affected resisters or memory locations after each the

Page 2: Assignment 1 Advance Processors DL-15082011

following group of instructions executes. Assume the each group of the instructions starts

with the resister and memory contents show in above question table of Q-08

a. ADDBL, AL d. MOV BX,000AH

MOV [00041],BL MOV AL,[BX]

ROR DI, 04

b. MOV CL,04 SUB AL,CL

c. ADD AL,BH INC BX

DAA

Que-10 Compute the average of 4 bites stored in an array in memory.

Que-11 Compute the average of any numbers of bites in an array in memory. The numbers of bites

to be added is in the first byte of the array.

Que-12 Add a 5-byte number in one array to a 5-byte number in anther array. Put the some another

array. Put the state of the carry flag in byte 6 of the array that contains the sum. The first

value in each array is the least significant byte of the number.

Que-13 An 8086- based process control system outputs on a measured Fahrenheit temperature to a

display on its front panel. You need to write a short program which convert the Fahrenheit

temperature to Celsius so that the system can be sold in Europe. The relation between

Fahrenheit and Celsius is C= (F-32)/9. The Fahrenheit temperature will always be in the

range of 50º to250º. Round the Celsius value to the nearest degree.

Assignment covers chapter No. 1, 2, 3 and 4 from Douglas Hall.

Note: Assignment has a weightage as a part of continuous evaluation. Please make a separate

assignment note book. If Assignment is observed fully copied from your classmate notebook

it may deduct your marks.

Deadline: Submit the assignment before 15th Aug 2011.

Kalpesh M Shah