1
0
mirror of https://git.code.sf.net/p/fuse-emulator/libspectrum synced 2025-09-11 22:50:44 +03:00
Files
libspectrum/test/raw-data-block.tzx
Alberto Garcia 3c9bc6c207 Fix bits_through_byte calculation in TZX RAW block
(fixes bug #445)

The value of bits_through_byte in libspectrum_tape_raw_data_next_bit
selects the bit to read from 0 (most significant) to 7 (least significant).
However when processing the last byte if the number of bits to read is N
then bits_through_byte goes from (8 - N) to 7 instead of from 0 to (N - 1).
2021-02-21 23:11:29 +11:00

22 B