Endian guess??
-
- Posts: 11
- Joined: Tue May 19, 2020 10:15 am
Endian guess??
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
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Endian guess??
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).
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).