Sponsored Links


Results 1 to 2 of 2

Thread: CS501 ASSIGNMENT NO 1 fall 2011 solution on 29th October, 2011

  1. #1
    Administrator
    Join Date
    Oct 2011
    Posts
    468

    Icon14 CS501 ASSIGNMENT NO 1 fall 2011 solution on 29th October, 2011

    Sponsored Links1


    A= (B+C)*(D+E)
    3 address instructions involve three operands i.e. two source and one destination. Op-code specifies the operation to be carried out.

    add x, b, c
    add y, d, e
    mul a, x, y

    In case of 2 address instructions, there are two operands. One of them is used as source whereas the other one is used both as source and destination.

    load y, b
    add y, c
    load r, d
    add r, e
    mul y, r
    store a, y


    In case of 0 address instruction only op code field has to be specified. Stack is used to hold both the operands and result.

    push d
    push e
    add
    push b
    push c
    add
    mul
    pop a

    Download the attachment for the solution


    Sponsored Links
    Attached Files Attached Files
    03009520262
    Rabeel Website

  2. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    3
    ASALAMO ALAIKUM ! RESPECTED MEMBERS I NEED THE ASSIGNMENT SOLUTION OF CS 504 software engenering........

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 10-31-2011, 09:37 PM
  2. Replies: 1
    Last Post: 10-31-2011, 08:39 PM
  3. Replies: 3
    Last Post: 10-31-2011, 05:43 PM
  4. Replies: 4
    Last Post: 10-27-2011, 01:13 AM
  5. Replies: 9
    Last Post: 07-03-2011, 03:14 AM

Tags for this Thread

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