User Tag List

Results 1 to 2 of 2

Thread: Understanding the Negative Rule

  1. #1
    Understanding the Negative Rule

    User Info Menu

    Understanding the Negative Rule

    Tut made by TheEliteOne

    Okay, well the negative rule is this:

    If the SECOND half of the address/values is 8000 or more you MUST add 1 to the FIRST half
    Why do we do this?

    Here is the Medal of Honor Heroes 2 Co-ordiante Pointer:

    Cheat Addressing: 006286DC
    True Addressing: 08E286DC
    So, if I wanted to load them you would do some thing like this:



    So t1 holds the full pointer. But do you see this:



    The 1 on the bottom is supposed to be a 2. If the second half of the pointer was under 8000 that would not happen, look at this (This is NOT the real pointer, I edited the second half of the pointer.)



    The second half of the value is 7FFF, that is 8000 - 1. Do you see how the 1 is now a 2 in the LW
    line? This is proof that we only need to use the negative rule when the second half of the address or value is 8000 or more. So here is how to fix it:



    So if we where going to branch with the pointer or some thing you would use t1, not t0. t1 now holds the real pointer. If you don't do this you WILL freeze. If you write a subroutine and it freezes instantly check for this.

    Information on ADDIU and ORI:

    Addiu and Ori - Basically do the same thing, don't think that they DO though.

    Addiu - Needs the Negative Rule
    Ori - Doesn't need the Negative Rule

    If you have an idea on a PSP related program that is ran on Windows PM me with some information on your idea please.

  2. #2
    TiGeR.Jatt...

    User Info Menu

    Re: Understanding the Negative Rule

    Wow a nice tut on the negative rule...many ppl miss this step ...
    I always missed this step but yu get used 2 it...

    So if yu subbed a code and yu freeze check back here 2 see if yu didn't miss the rule...

    Rep up elite never saw a negative rule tut :)

    This is important if ppl are going 2 learn codeing so keep this in mid as well as all the commands..

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •