Finally make the Amiga encoder work properly. Do some FM/MFM/bits refactoring.

This commit is contained in:
David Given
2021-07-05 23:16:03 +02:00
parent ec689e100e
commit 56cbf39d59
5 changed files with 93 additions and 27 deletions

View File

@@ -23,6 +23,7 @@ extern Bytes decodeFmMfm(std::vector<bool>::const_iterator start,
std::vector<bool>::const_iterator end);
extern void encodeMfm(std::vector<bool>& bits, unsigned& cursor, const Bytes& input, bool& lastBit);
extern void encodeFm(std::vector<bool>& bits, unsigned& cursor, const Bytes& input);
extern Bytes encodeMfm(const Bytes& input, bool& lastBit);
static inline Bytes decodeFmMfm(const std::vector<bool> bits)
{ return decodeFmMfm(bits.begin(), bits.end()); }