mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-06 13:31:55 +00:00
Fix[/revert]: the fetch pointer should be _ahead_.
This commit is contained in:
parent
5143960970
commit
169d7a7418
@ -42,12 +42,14 @@ Base<personality>::Base() :
|
|||||||
mode_timing_.line_interrupt_position = Timing<personality>::StartOfSync;
|
mode_timing_.line_interrupt_position = Timing<personality>::StartOfSync;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Establish that output is delayed after reading by `output_lag` cycles; start
|
// Establish that output is delayed after reading by `output_lag` cycles,
|
||||||
// at a random position.
|
// i.e. the fetch pointer is currently _ahead_ of the output pointer.
|
||||||
fetch_pointer_.row = rand() % 262;
|
//
|
||||||
fetch_pointer_.column = rand() % (Timing<personality>::CyclesPerLine - output_lag);
|
// Start at a random position.
|
||||||
output_pointer_.row = fetch_pointer_.row;
|
output_pointer_.row = rand() % 262;
|
||||||
output_pointer_.column = fetch_pointer_.column + output_lag;
|
output_pointer_.column = rand() % (Timing<personality>::CyclesPerLine - output_lag);
|
||||||
|
fetch_pointer_.row = fetch_pointer_.row;
|
||||||
|
fetch_pointer_.column = output_pointer_.column + output_lag;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <Personality personality>
|
template <Personality personality>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user