Skip to content

Commit

Permalink
Made the MFM marker byte detection a lot more robust --- prevents false
Browse files Browse the repository at this point in the history
positives; it looks like the new sampler is producing a little bit of wobble
which randomly spoofs a marker byte now and again. This prevents this from
happening (so far).
  • Loading branch information
davidgiven committed Jan 26, 2020
1 parent 6af80d1 commit efa4c93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/ibm/decoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ const FluxPattern FM_TRS80DAM2_PATTERN(16, 0xf56c);
* encoding (you can't do 10 00). So this can't be spoofed by user data.
*
* shifted: 10 00 10 01 00 01 00 1
*
* It's repeated three times.
*/
const FluxPattern MFM_PATTERN(16, 0x4489);
const FluxPattern MFM_PATTERN(48, 0x448944894489LL);

const FluxMatchers ANY_RECORD_PATTERN(
{
Expand Down

0 comments on commit efa4c93

Please sign in to comment.