so does it means that if latch contain 0,
then it is functionnaly same as irq disabled because no transition from non-0 to 0?
I have some questions in more detail,
does the irq part work as follow(or functionlly same) ?:
on reset, irq disabled, clear irq pending. and irq latch and irq counter both contain 0.
when irq counter is written($c000), it count from this value in next clock. what happen if 0 is written and then clocked ? just reload from latch and NOT generate irq ?
when irq latch is written($c001), it update the counter from latch in next clock. this is the same as put 0 in counter (if the assumption above is correct).
when disabled($e000), copy latch value to counter.(so when enabled, it will decrement in the 1st clock rather than get it from latch).
when enabled($e001), no change to latch or counter.
if irq is enabled:
when PPU A12 change from 0 to 1(or 1 to 0?) 42 times (is that means there is a 42-divider?), irq counter is clocked once. and what happen after the clock is what asked above.
and more questions if there is a 42-divider( please don't bother about me
:
when latch is update, is this divider reset?
when irq is enabled or disabled, what happen to this divider?