Announcement

Collapse
No announcement yet.

Siren

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    You know how a code that's something like
    20456788 000F423F
    would give you 999999 or something?
    The lime and red come together just to make one value.

    You would probably need to download the program PS2Dis to understand the ASM part.
    This line
    200b0010 3c020000
    sets the ????0000 part of v0.

    This line
    200b0014 34420000
    sets the 0000???? part of v0.

    So now v0 is 00000000, just zero.

    This line
    200b0018 ac22a814
    stores whatever is in v0 (00000000) at whatever at+a814. "at" is "assembly temporary." I have no idea where at is at in the memory of the game, it might randomly change from one level to the next for all I know. All I know is that if I put this in the player's health code, and tell the game to store the value of v0 (I set it to 00000000) at at+a814, you lose everything in your inventory when anything attacks you.


    This stuff isn't as scary as I describe it. Believe it or not, I just learned this while making that one code to start the level with all of the enemies dead. I learned it about 3 days ago.


    If you need help, I'm here, even though I kind of suck at explaining without making it very long and confusing.



    If I would have been thinking at the time, I could have made an easier shortcut since I'm just setting things to 0.
    200b0010 3c020000
    200b0014 34420000
    200b0018 ac22a814
    could have just been
    200b0010 ac20a814

    That would directly just store 0 at at+a814. I could also do a bunch at a time like
    400b0010 00400001
    ac20a800 00000004

    That would be the same as
    200b0010 ac20a800
    200b0010 ac20a804
    200b0010 ac20a808
    200b0010 ac20a80c
    200b0010 ac20a810
    200b0010 ac20a814
    all the way to
    200b0010 ac20a8FC.
    That would set all of those to 0.
    Last edited by bungholio; 02-24-2009, 03:56:53 PM.
    July 7, 2019

    https://www.4shared.com/s/fLf6qQ66Zee
    https://www.sendspace.com/file/jvsdbd

    Comment

    Working...
    X