Google Answers Logo
View Question
 
Q: answer to programming questions ( No Answer,   1 Comment )
Question  
Subject: answer to programming questions
Category: Computers > Programming
Asked by: mott85-ga
List Price: $40.00
Posted: 20 Mar 2005 14:02 PST
Expires: 21 Mar 2005 16:55 PST
Question ID: 497683
I am looking for the answer to question 4-2 in the bookSPARc
architecture, Assembly Language and programming in C (secodn edtion)
The author is Richard P. paul

The questions of 4-2 is as follows this code is in sparc:
Write an addition algorithm wich also sets the condtion codes for two's
complemnbnts numbers using the machine logical instructions such as
And reg_rs1, reg_or_imm, reg_rd

Andn reg_rs1, reg_or_imm, reg_rd

Xor reg_rs1, reg_or_imm, reg_rd

Or reg_rs1, reg_or_imm, reg_rd

Xnor reg_rs1, reg_or_imm, reg_rd

Orn reg_rs1, reg_or_imm, reg_rd

 you can not use add or sub or their cc versions the code should aslo
set the condtion codes for N, V, Z and C
the condtion are to eb stored in low order rgeisters
define(z,8) !'z=010
define(n,4) !' N=004
define(v,2) !'V=002
define(c,1) !'c=001
Answer  
There is no answer at this time.

Comments  
Subject: Re: answer to programming questions
From: mister2u-ga on 21 Mar 2005 11:59 PST
 
http://groups.google.ca/groups?hl=en&lr=&ie=UTF-8&group=alt.folklore.computers.These
guys love talking about arcane computer problems.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy