Sponsored Links

Results 1 to 2 of 2

Thread: CS401 assignment #1 fall 2010 solution required due date 08 Nov2010

  1. #1
    Junior Member
    Join Date
    Jul 2010

    Bfly CS401 assignment #1 fall 2010 solution required due date 08 Nov2010

    Sponsored Links1

    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
    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


    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 segmentffset pairs (both are hexadecimal values).

    a. 0000:FFFF
    b. 0100:0100

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

    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

    Sponsored Links

    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) =?

  2. #2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. required solution of cs401 assignment No 03.!
    By waqas.aryan786 in forum Get Solution In 24 Hour
    Replies: 2
    Last Post: 06-13-2012, 12:37 AM
  2. Replies: 2
    Last Post: 10-26-2011, 04:53 AM
  3. cs401 assignment no 3 solution required
    By mc100200446 in forum Get Solution In 24 Hour
    Replies: 2
    Last Post: 06-09-2011, 11:22 PM
  4. cs401 GDB solution fall 2010
    By Xpert in forum GDB Discussion
    Replies: 0
    Last Post: 02-03-2011, 01:47 AM
  5. Replies: 0
    Last Post: 01-13-2011, 07:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft | Jobs