Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 22nd, 2007, 8:09 PM   #1
goblin_rocksled
Newbie
 
Join Date: Feb 2007
Posts: 1
Rep Power: 0 goblin_rocksled is on a distinguished road
extract the sequence in MIPS

Hi! I've been trying to solve this simple problem using shifting operation in MIPS. However, I'm not really sure if I sure really use an operand like "ori" and "and". This problem kind of confuses me...

Given a 32 bit binary sequence a31a30……..a2a1a0 in a register say s0. I would like
to extract the sequence ai…….aj (with i>j, 0 < i <=32, 0 <= j < 32) and place them in the
least significant bits of another register say t0. Write the sequence of MIPS instructions
that allows one to do that. Also assume that i is available in register s1 and j is s2.
goblin_rocksled is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MIPS assembly language cwl157 Assembly 41 Dec 4th, 2006 10:00 PM
How can I extract bitmap from dll resource using MFC and DHTML DudiDaabul C++ 0 Feb 7th, 2006 4:53 AM
Tools to Extract Comments swmk Java 4 Oct 19th, 2005 3:39 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:37 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC