Thomas Jentzsch, on Wed Oct 15, 2008 2:51 PM, said:
You don't have a scanline counter, do you?
Else you could do:
; assuming Y is the scanline counter, counting down
cpy M0end
rol
rol ; as long as Y is >= M0end, this results into bit 1 set.
sta ENAM0 ; 10 cycles
I could change my Kernel so that A is used for data, Y as linecounter, X as pointer for what tiles to display (Chris already sent me some sample code).
But do ENAM0 and ENAM1 also make use of the vertical-delay just like player1 and player2?
btw, some improvements I've done:
- checkerboard dimensions in the view is now parameterized, so I can make 21x51 and 51x21 checkerboards (for rotation)
- moved the tile-setup-code to the sky-kernel (was before sky-kernel) so title/score can be displayed between player1 and player2 checkerboards.
- vblank is now free again so all game logic can be put there.
Edited by roland p, Thu Oct 16, 2008 2:03 AM.