I started writing a DMA manager and I think it'd be useful to know just how far into (or past) VBlank I am after all the DMA stuff has been completed. So it'd be cool if I could just grab the vertical scanline counter. The register docs mention something about setting the appropriate IOBit and then accessing a register to "latch" the counter.
What exactly does "latch" mean? Is it just taking a snapshot of this counter? Is it stopping the counter so that I have to unlatch it or the universe will explode?? And what side-effects are there, if any?
What exactly does "latch" mean? Is it just taking a snapshot of this counter? Is it stopping the counter so that I have to unlatch it or the universe will explode?? And what side-effects are there, if any?