Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS401 assignment #1 fall 2010 solution required due date 08 Nov2010
#1
CS401- Computer Architecture and Assembly Language Programming
Assignment # 1
Fall 2010
Total Marks: 20
Due Date
Your assignment must be uploaded before or on 8th Nov 2010.
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
 To understand Register
 To understand the use of debugger and how to read value from Debugger


Assignment

Question_1: [marks: 5]
What is the effective address generated by each of the following instruction?
Initially AX= 0x0FED, BX=0x0400, label=0x04201, and SI=0x00E1
(Offsets in part a, b and f are in decimal)


a. mov ax, [bx+65]
b. mov bx, [ax+35]

c. mov ax, [bx+label]
d. mov bx, [label+ax]

e. mov bx, [ax+si]


Question_2: [marks: 5]
Calculate the physical memory address generated by the following segment:offset pairs (both are hexadecimal values).

a. 0000:FFFF
b. 0100:0100

c. DEF8:2222
d. 543F:3254
e. FFFF:AAAA


Question_3:
Write the given program, assemble it and then analyze it in Debugger [marks: 10]

[org 0x0100]
mov al, [num1]
mov bl, [num1+1]
mov bl, [num1+2]
add al, bl
mov ax, 0x4c00
int 0x21


num1: db 5, 10, 15, 0


After analysis you have to provide all information that is asked under:

al,bl and IP Register

You have to fill the table given below and write the values of al,bl and IP registers before and after execution of an instruction as you analyze in debugger. You also have to give reason that why the value of al,bl and IP registers change after a particular instruction. Give reason in corresponding column.

Instruction Before Execution After Execution(with Reasons)
Value of al Value of bl Value of IP Value of al Value of bl Value of IP
mov al,[num1]

mov bl,[num1+1]

add al,bl

mov bl,[num1+2]

add al,bl

mov [num1+3],al






You also have to provide the following information

Address of num1=?
Address of num1+1=?
Address of num1+2=?
Address of num1+3=?
Value of num1+3(at end of program) =?
Reply
#2
Given to some other forum.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  get your solution in 24 hours 2020 Xpert 0 8,800 10-11-2020, 10:09 PM
Last Post: Xpert
  get your solution in 24 hours 2020 Xpert 0 3,182 10-11-2020, 10:09 PM
Last Post: Xpert
  vuhelp.com forum is providing solution of virutal university students in 24 hour 2014 Xpert 3 2,489 11-17-2014, 06:11 PM
Last Post: leo861323
  GDB of FIN730 - Investment Analysis & Portfolio Management (Need Solution) Muhammad Husnain Mughal 1 1,876 05-15-2014, 08:21 PM
Last Post: hondasr8
  GDB of FIN723 - Taxation Management (Need Solution) Muhammad Husnain Mughal 1 2,930 05-07-2014, 04:09 AM
Last Post: Vuhelper
  Need ACC501 - Business Finance Assignment No 2 Solution. Umar Abbas 2 4,251 02-07-2014, 08:23 PM
Last Post: Umar Abbas
  operating assinment solution help nenanena 9 6,103 08-18-2013, 03:53 AM
Last Post: Xpert
  sta301 assignment 4 27 jun bc110200090 6 3,580 01-26-2013, 02:05 AM
Last Post: Vuhelper
  cs506 2nd assignment millee 0 2,659 12-04-2012, 11:30 PM
Last Post: millee
  cs506 2nd Assignment Neelam Ahmad 5 3,127 12-04-2012, 11:24 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)