mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-09 05:25:01 +00:00
At least attempts to chain correctly.
This commit is contained in:
@@ -69,9 +69,15 @@ struct MOS6526Storage {
|
|||||||
// Determine whether an input clock is applicable.
|
// Determine whether an input clock is applicable.
|
||||||
if constexpr(is_counter_2) {
|
if constexpr(is_counter_2) {
|
||||||
switch(control&0x60) {
|
switch(control&0x60) {
|
||||||
case 0x00:
|
case 0x00: // Count Phi2 pulses.
|
||||||
pending |= TestInputInOne;
|
pending |= TestInputNow;
|
||||||
break;
|
break;
|
||||||
|
case 0x40: // Count timer A unerflows.
|
||||||
|
pending |= chained_input ? TestInputNow : 0;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 0x20: // Count negative CNTs.
|
||||||
|
case 0x60: // Count timer A transitions when CNT is low.
|
||||||
default:
|
default:
|
||||||
// TODO: all other forms of input.
|
// TODO: all other forms of input.
|
||||||
assert(false);
|
assert(false);
|
||||||
|
Reference in New Issue
Block a user