the data that stored in volume boot sector are
little-endian format(such as BIOS Parameter Block).
they must convert to big-endian to use?
if thats right how we can do this convertion?

As above mentioned, what CPU you are using?hojjatrakhshani wrote:the data that stored in volume boot sector are
little-endian format(such as BIOS Parameter Block).
they must convert to big-endian to use?
If you can't figure it out, you should not touch the boot sector, it's dangerous.hojjatrakhshani wrote:if thats right how we can do this convertion?
sorry!i use x86.As above mentioned, what CPU you are using?

Ah, you don't want to do TCP/IP?Merlin wrote:x86 does not need to ever use big endian.
The bytes 0x00, 0x02 would be 0x0200 in little-endian format, which is what an 80x86 CPU expects. Just read them as a 16-bit word (with no byte swapping required).hojjatrakhshani wrote:sorry!i use x86.
for example bytes per sector stored in BPB with this value 00 02
i dont need convert it to 02 00 fo my calculation?

I apologise for being presumptuous. I know little of tcp/ip but would be shocked to find any Big Endian components in the Fat filesystem.Solar wrote:Ah, you don't want to do TCP/IP?Merlin wrote:x86 does not need to ever use big endian.

