It's easy to set up a system that switches between display lists:
dlist1: .byte $70,$70,$70 lineptrs: ...(stuff that I change dynamically goes here) .byte $41,<dlist2,>dlist2 dlist2: .byte $70,$70,$70 lineptrs: ...(stuff that I change dynamically goes here) .byte $41,<dlist1,>dlist1
This will switch between dlist1 and dlist2 every frame.
However, how do I sync my main code so that I'm updating the code that is NOT currently being displayed?
lda #0 !wait: cmp VCOUNT bne !wait- ..Here i need to figure out if dlist1 or dlist2 is in use, so I can start updating the other!
Or can I somehow avoid using the $41 "jump" instruction in the display list, and control it manually from my main code instead? Which is the best solution?