According to
Wiki, when the sweep of APU pulse channel 1 is configured that negate flag is true and shift count is zero (that is, $08 is written to $4001), a negative overflow seems to occur in target period calculation:
Code: Select all
target_period = current_period - current_period - 1
In this case, what is the exact value of target period? Is it greater than $7FF? Or saturated to zero?