Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2528

programming • Re: If wait VSYNC called in tight loop, does it always wait?

$
0
0
Here's the OS 1.20 code for *FX19 in TobyLobster's disassembly:

Code:

.osbyte19EntryPoint    LDA .verticalSyncCounter                            ; Read vertical sync counter-    CLI                                                 ; allow interrupts briefly    SEI                                                 ; disable interrupts again    CMP .verticalSyncCounter                            ; has the vertical sync counter changed yet?    BEQ -                                               ; if (the values are the same) then branch (loop back)
So it looks to me as though it should always wait at least one VSYNC.

Statistics: Posted by SteveF — Mon Sep 09, 2024 9:01 pm



Viewing all articles
Browse latest Browse all 2528

Trending Articles