tags:

views:

351

answers:

1

Hi Guys , I have a assembly language code ,I want to put it into a particular location at memory.The idea is basically when I finish running a code it jumps to the memory location where my other program is stored.So.what instruction/assembler directive I use to put it the desired memory location?

A: 

My job is verification of a MIPS based microprocessor.For that I have a random code ,Initially when I start I am in the reset vector (kseg1) ,here I do a couple of things like initializing the Register File ,setting up stack pointers.Once this is done I want to jump to kseg0 (so that I can execute privileged instructions).This demands that I put my random test into kseg0.So basically the problem wraps up to how do I put my code into kseg0,once it is there I can do a jump from kseg1 and start executing my test. I hope this clears up things a bit.

Abhishek

Abhishek
You should either edit your question or use the comments to clarify it. Posting an answer is not the way to do it; that's probably why you got a -1.
aib