View previous topic :: View next topic |
Author |
Message |
markheloking Cheater
Reputation: 2
Joined: 21 Nov 2009 Posts: 35
|
Posted: Thu Jan 14, 2016 10:31 am Post subject: Properly showing an int32 with big-endiannes byte order |
|
|
So this game I'm currently debugging has an int32 value where the bytes are in big-endian. If I use "add address manually" to add the address to the list stating as a 4 byte type, it shows up in the reverse order.
Example:
Proper value (checken in game) and wanted notation: 6138
Byte array in memory viewer: 00 00 17 FA
4 Bytes (decimal notation): 4195811328
4 Bytes (hexadecimal notation): FA170000
Array of 4 byte (hex notation): 00 00 17 FA
Array of 4 byte (decimal notation): 0 0 23 250
[edit]
Check dark_bytes answer, it works!
Last edited by markheloking on Thu Jan 14, 2016 11:11 am; edited 2 times in total |
|
Back to top |
|
 |
mgostIH Expert Cheater
Reputation: 3
Joined: 01 Jan 2016 Posts: 159
|
Posted: Thu Jan 14, 2016 10:47 am Post subject: |
|
|
Set the type to Array of Bytes with lenght of 4.
_________________
|
|
Back to top |
|
 |
markheloking Cheater
Reputation: 2
Joined: 21 Nov 2009 Posts: 35
|
Posted: Thu Jan 14, 2016 10:49 am Post subject: |
|
|
That's what I'm doing now, but I want it show the decimal value, not the hex value.
Array of 4 byte (hex notation): 00 00 17 FA
Array of 4 byte (decimal notation): 0 0 23 250
Wanted decimal notation: 6138
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
|
Back to top |
|
 |
markheloking Cheater
Reputation: 2
Joined: 21 Nov 2009 Posts: 35
|
Posted: Thu Jan 14, 2016 11:11 am Post subject: |
|
|
Thank you, that works just as I want it to.
Sorry about the big-endian vs little-endian mixup there haha.
|
|
Back to top |
|
 |
|