|
Atari coding BBS
Re: Setting color at specific line |
Posted by: evil
|
Aug,21.2013-19:10
|
Restore what you mess up is a good general rule of thumb.
If you set the vector to someplace in your code, and then exit the program, the vector will still point to your now void memory space. In case some other program that runs after yours enables Timer B before changing vector, it won't end happily.
In the Spiny example I just set all vectors to a RTE. To mess with Timer C MFP registers is asking for troubles. The remaining Timer C RTE can cause a little jitter in Timer B execution, but not enough to spoil a nice rasterbar.
When you start adding music, things can get a bit hairy though. An "oldskool" YM track is no problem, it only updates the YM at VBL. A more modern player can have interrupt driven instruments to generate PWM and some other things, great sounds but stable rasters need a bit more care in such a case.
The final level is absolute cycle-perfect raster. A little harder but manageable and is needed for plasma, multicolour display and overscan.
--
Anders Eriksson
ae@dhs.nu
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Setting color at specific line
|
Sdw
|
Aug,21.2013-17:57
|
Re: Setting color at specific line
|
damo
|
Aug,21.2013-18:19
|
Re: Setting color at specific line
|
Sdw
|
Aug,21.2013-21:50
|
Re: Setting color at specific line
|
grazey
|
Aug,21.2013-18:39
|
Re: Setting color at specific line
|
defjam
|
Aug,24.2013-18:17
|
Re: Setting color at specific line
|
evil
|
Aug,21.2013-19:10
|
Re: Setting color at specific line
|
Sdw
|
Aug,21.2013-21:55
|
Re: Setting color at specific line
|
evil
|
Aug,22.2013-10:47
|
Re: Setting color at specific line
|
Cyprian
|
Aug,22.2013-16:43
|
Re: Setting color at specific line
|
evil
|
Aug,22.2013-16:58
|
Re: Setting color at specific line
|
ggn
|
Aug,22.2013-23:31
|
Re: Setting color at specific line
|
evil
|
Aug,23.2013-14:54
|
Re: Setting color at specific line
|
Cyprian
|
Aug,23.2013-15:37
|
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.
|