Login
Back to forumSee the full topicGo to last reply

Posted By

Krill
on 2022-07-26
05:28:25
 Re: endianness of tape file bits

In files and memory, bytes are almost always stored with the bit order 7..0.
Endianness almost always refers to the order of multi-byte integers, not the bits in individual bytes

The .TAP file data size field (4 bytes) is stored in little-endian order, with the bits in each byte in the usual 7..0 order.

It is extremely likely that the file data pulse-length bytes are stored in the 7..0 order, too.

KERNAL stores bytes in LSB->MSB order, bit 0 appears first on tape.



Back to top


Copyright © Plus/4 World Team, 2001-2024