mirror of
https://github.com/TomHarte/dsk2woz.git
synced 2024-12-26 22:30:57 +00:00
parent
f66dccbc58
commit
0459a8a090
@ -342,7 +342,7 @@ static void encode_6_and_2(uint8_t *dest, const uint8_t *src) {
|
|||||||
// Exclusive OR each byte with the one before it.
|
// Exclusive OR each byte with the one before it.
|
||||||
dest[342] = dest[341];
|
dest[342] = dest[341];
|
||||||
size_t location = 342;
|
size_t location = 342;
|
||||||
while(location) {
|
while(location > 1) {
|
||||||
--location;
|
--location;
|
||||||
dest[location] ^= dest[location-1];
|
dest[location] ^= dest[location-1];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user