From 7399f3d798d77959b9a8cd9f7133d0e87c4dbfbc Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 6 Jun 2017 18:18:55 -0400 Subject: [PATCH] Caveman debugging in place, it looks like this file is returning nonsense. --- Storage/Tape/Formats/ZX80O.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Storage/Tape/Formats/ZX80O.cpp b/Storage/Tape/Formats/ZX80O.cpp index 01d21c26f..d45f6fd8c 100644 --- a/Storage/Tape/Formats/ZX80O.cpp +++ b/Storage/Tape/Formats/ZX80O.cpp @@ -76,9 +76,11 @@ Tape::Pulse ZX80O::virtual_get_next_pulse() { if(is_high_) { pulse.type = Pulse::Type::High; is_high_ = false; + printf("-"); } else { pulse.type = Pulse::Type::Low; is_high_ = true; + printf("_"); int wave_count = (byte_ & (0x80 >> bit_pointer_)) ? 9 : 4; wave_pointer_++; @@ -94,6 +96,7 @@ Tape::Pulse ZX80O::virtual_get_next_pulse() { pulse.type = Pulse::Type::Zero; bit_pointer_++; + printf("\n"); } return pulse;