Looks like the Roland D-20 format is the same as Brother240???

This commit is contained in:
dg
2023-04-06 17:07:00 +00:00
parent 635c6c7bfe
commit ef60bfff6b
2 changed files with 23 additions and 12 deletions

View File

@@ -12,13 +12,19 @@
*
* BF FF FF FF FF FF FE AB
*
* f f f f f e a b
* 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1
* 1111111111111111111111111111111111111111111111011101110111011111
* f f f f f f f f f f f d d d d f
* This encodes to:
*
* e d 5 5 5 5 5 5
* 1110 1101 0101 0101 0101 0101 0101 0101
* 5 5 5 5 5 5 5 5
* 0101 0101 0101 0101 0101 0101 0101 0101
* 5 5 5 5 5 5 5 5
* 0101 0101 0101 0101 0101 0101 0101 0101
* 5 5 5 4 4 4 4 5
* 0101 0101 0101 0100 0100 0100 0100 0101
*/
static const FluxPattern SECTOR_PATTERN(64, 0xfffffffffffddddfLL);
static const FluxPattern SECTOR_PATTERN(64, 0xed55555555555555LL);
class RolandD20Decoder : public Decoder
{
@@ -34,8 +40,9 @@ public:
void decodeSectorRecord() override
{
auto rawbits = readRawBits(128);
auto rawbits = readRawBits(256);
const auto& bytes = decodeFmMfm(rawbits);
fmt::print("{} ", _sector->clock);
hexdump(std::cout, bytes);
}
};

View File

@@ -6,19 +6,23 @@ image_writer {
}
layout {
tracks: 80
sides: 2
tracks: 78
sides: 1
layoutdata {
sector_size: 512
sector_size: 256
physical {
start_sector: 1
count: 10
start_sector: 0
count: 12
skew: 5
}
}
}
decoder {
rolandd20 {}
brother {}
}
drive {
head_bias: 1
}