User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 456,611 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,406 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser: Programming Forums
Views: 1119 | Replies: 1
Reply
Join Date: Nov 2007
Posts: 1
Reputation: agramma is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
agramma agramma is offline Offline
Newbie Poster

c to mips conversion

  #1  
Nov 9th, 2007
hi , i must convert the following c code to mips assembly for my university:
odd = 1020000; /* 0xF9060 */
j= 0;
loop: if (j & 0x1) {
printf(“odd\n”);
odd++;
}
j = j + 1;
if (j < 5) goto loop;
printf(“%d\n”,odd);

variables j and odd must be stored at registers $8 and $9($t0 and $t1)
pls help
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2005
Posts: 3,834
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 23
Solved Threads: 436
Colleague
Salem's Avatar
Salem Salem is offline Offline
banned

Re: c to mips conversion

  #2  
Nov 9th, 2007
Show some effort
Use code tags
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Assembly Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Assembly Forum

All times are GMT -4. The time now is 7:23 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC