|
Atari coding BBS
Sync-Lock code on STE |
Posted by: Mr.Styckx
|
Jun,08.2012-23:29
|
It can be tricky to compute the expected value of $ff8209 when video counter was changed before.
In that case, the simplest way could be to have your timer b starts, at this point you will be in the right border. Modify $ff8209 to 0 for example to get a fixed starting point on the next line.
Then on the next line you can wait for $ff8209 to change (exit from left border) and apply the usual method to wait a specific number of cycles depending on the value you read in $ff8209.
If changing $ff8209 is not possible because it would mess with your gfx, then the only way is to compute the expected value in $ff8209 on your 8th line by considering you need to add 160*8 to the value in $ff8209 last time you changed the video counter (assuming you don't remove left/right border).
Nicolas
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|