Endian guess??

Programming related discussions related to game research
Bleech Studios
Posts: 11
Joined: Tue May 19, 2020 10:15 am

Endian guess??

Post by Bleech Studios »

Can somebody explain in BMS script what 'endian guess VAR' does? The quick bms txt file did not explain it very well and im very confused
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Endian guess??

Post by aluigi »

Endianess is the way the numbers are stored in data.

For example if your number 0x11223344
- little endian: 44 33 22 11
- big endian: 11 22 33 44

That specific command of quickbms tries to guess what the correct endianess from the variable VAR.
If the current endianess is little (default) and VAR is 0x00001234 the endianess will remain the same, if VAR is 0x34120000 it will be set as big endian and VAR automatically set accordingly (will become 0x1234).