1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Caveman debugging in place, it looks like this file is returning nonsense.

This commit is contained in:
Thomas Harte 2017-06-06 18:18:55 -04:00
parent faeecf7665
commit 7399f3d798

View File

@ -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;