Advertisement

CS401- Computer Architecture and Assembly Language Programming Assignment # 1

CS401- Computer Architecture and Assembly Language Programming

Assignment # 1

Fall 2009

Total Marks: 20

Due Date

Your assignment must be uploaded before or on 17th Oct 2009.

Upload Instructions

Please view the document related to assignment submission process provided to you by the Virtual University to upload the assignment.

Rules for Marking

Kindly note that your assignment will NOT be graded if:

§ It is submitted after due date

§ The file you uploaded does not open

§ The file you uploaded is copied from someone else

§ It is in the format other than .doc

Objective

This assignment has been designed to enable you:

§ To understand how effective address is calculated

§ To understand how physical memory address is calculated

Assignment

Question_1: [marks: 6]

What is the effective address generated by each of the following instruction?

Initially BX=0x0100, label=0x0234, [label]=0x0010, and SI=0x00E1

(Offsets in part a, b and f are in decimal)


  1. mov ax, [bx+40]
  2. mov ax, [bx+20]

  1. mov ax, [bx+label]
  2. mov ax, [label+bx]

  1. mov ax, [bx+si]
  2. mov ax, [si+25]

Question_2: [marks: 14]

Calculate the physical memory address generated by the following segment:offset pairs (both are hexadecimal values).


  1. 0000:0100
  2. 0010:0000

  1. DAD1:2345
  2. 5432:FFFF

  1. FFFF:5432
  2. FEFF:4241

  1. 1020:0800

0 Responses