ADD Immediate?
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
ADD Immediate?

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Computer Architecture
Author Message
Paminu
Guest





Posted: Fri Nov 11, 2005 5:15 pm    Post subject: ADD Immediate? Reply with quote

I am trying to understand the ADD Immediate instruction in the MIPS
language.

I have a MIPS Reference Data card (green) where ADDI has the following
definition:

R[rt] = R[rs] + SignExtImm

As I understand it a constant is added to the contents of rs. The the
content of rt is replaced by this sum. Is that correct??

I am a bit confused if its the content of the registers or the address of
the registers.
Back to top
Michael Koenig
Guest





Posted: Fri Nov 11, 2005 5:15 pm    Post subject: Re: ADD Immediate? Reply with quote

Paminu wrote:
Quote:
I am trying to understand the ADD Immediate instruction in the MIPS
language.

R[rt] = R[rs] + SignExtImm

As I understand it a constant is added to the contents of rs. The the
content of rt is replaced by this sum. Is that correct??

Yes, a 16-bit signed immediate is added to the value of Rs and then put into
Rt.

Quote:
I am a bit confused if its the content of the registers or the address of
the registers.

In typical RISC architectures only load and store instructions access memory,
and everything else operates just on registers.

--
M.I.K.e
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Computer Architecture All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB