bungholio Cheater
Reputation: 0
Joined: 11 Feb 2009 Posts: 45
|
Posted: Thu Feb 19, 2009 9:58 pm Post subject: |
|
|
Are you asking about what signed bytes are?
I've used 32 bit floating point decimal (floats) a lot when finding codes for PS2 games.
The most common used float is 3f800000, which translates into 1. To make the number signed, I just add exactly 80000000 to the number to get bf800000 which is -1. Whenever I've seen a signed number it was just a negative number.
Every time I encounter a negative number for something, it's just a number that's in the higher half of the possible values if that makes any sense.
A game like Disgaea 1 Hour of Darkness for PS2 used signed numbers a lot. For example, a lot of values are only 1 byte, so the highest is "FF". The first half of the possible digits are from "00" to "7f", and the higher half are from "80" to "FF". The first half are all positive numbers, the last half are all negative numbers.
If it were 2 bytes, then anything that's 8000 or higher would be a negative number.
Floats for PS2 were different than the other ones for Disgaea though. To make a normal PS2 float value negative, you just add exactly 80000000 to the number and it becomes negative. However with Disgaea's you'd have the highest number being 7f (127 decimal), and the next number would be 80 (-128 decimal) and then it would count down from there.
I hope I didn't miss your question completely.
|
|