This is my first time experience with mips assembly. I am using spim. We are doing the plan where later on some manipulation, the program loops dorsum to the starting time unless a quit control is given. My problem is that I don't know what registers I messed with but afterward the 1st loop, some weird behaviors would occur. I think information technology is the error of the registers not being reset. How would you reset all the registers back to the mode it was when y'all start run the code? Thanks.
#2
Ummm, copy all the values in the registers into the stack earlier modifying them. Technically, the only ones you demand to copy are the caller-saved ones, only practically at that place is no difference. When you need to recall the values just read them from the stack.
#4
Brings dorsum bad memories of my OS class.
#5
Originally posted by: Marty Ummm, copy all the values in the registers into the stack before modifying them. Technically, the but ones you lot need to copy are the caller-saved ones, but practically there is no difference. When yous need to recall the values merely read them from the stack.
What he said. I don't accept whatever feel with MIPS; at our school, CPE's utilize MIPS, and EE's program for the MC68000. But from what you've described, it seems comparable (the but difference I tin recollect is, I believe, MIPS has more accost registers than the 68.
#half dozen
this is totally off topic but maybe this isn't the right forum for this
Advertizement
Cookies Policies
Privacy
Term & Conditions
Almost us
This site uses cookies to help personalise content, tailor your experience and to keep yous logged in if you register. Past continuing to utilise this site, you are consenting to our utilize of cookies.
0 Response to "How To Reset Registers Mips"
Post a Comment