Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

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]

Topic Posted by  Date 
Sync-Lock code on STE Bod/STAX Jun,08.2012-19:44
  Sync-Lock code on STE Mr.Styckx Jun,08.2012-23:29
    Re: Sync-Lock code on STE Bod/STAX Jun,09.2012-13:43
      Re: Sync-Lock code on STE defjam Jun,09.2012-16:21
        Re: Sync-Lock code on STE Bod/STAX Jun,09.2012-20:32
          Re: Sync-Lock code on STE evil Jun,09.2012-21:13
            Re: Sync-Lock code on STE ggn Jun,09.2012-21:49
            Re: Sync-Lock code on STE Bod/STAX Jun,09.2012-22:06
              Re: Sync-Lock code on STE nativ Jun,10.2012-01:58


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson