
April 22nd, 2010, 06:13 PM
|
Registered User
|
|
Join Date: Apr 2010
Posts: 1
Time spent in forums: 15 m 37 sec
Reputation Power: 0
|
|
MIPS Assembly, Merging Registers
I have a fairly quick question about MIPS programming. Assume there are 4 integers stored in 4 seperate registers (for arguments sake 1, 2, 3 and 4). How would one go about getting, in a single register, those merged together so inside the register was a single integer 1234. I heard mention of shifting bits to accomplish it but I can't fathom how shifting could help (since shifting is basically just multipling whatever integer is in the register by 2^k where k is the number of bytes shifted)
Any help would be amazing,
Tony V.
|