| |
Scout
Registered: Dec 2002 Posts: 1570 |
IRQ instable with music playing?!
Hi
Rusty old Scout here...
I have coded a sideborder routine which neatly opens the sideborder.
No problem there but...as soon as I add a music-routine the IRQ becomes instable.
I just can't get the sideborders open again.
What could be the problem ? |
|
... 10 posts hidden. Click here to view all posts.... |
| |
Cruzer
Registered: Dec 2001 Posts: 1048 |
Quote:you should always add a music when you are coding Word |
| |
Scout
Registered: Dec 2002 Posts: 1570 |
Found it!
The problem was that the music was playing in the 'visible' area ($33-$fa). Moved it somewhere else, et voilá..a stable raster with music.
Yay & Woo!
Nevertheless, thanx y'all for replying! |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
thats more of a workaround :) "multiple irqs" for me didnt translated as "double irq method" sorry. |
| |
Radiant
Registered: Sep 2004 Posts: 639 |
It's possible to obtain a stable raster regardless of what you do during the graphic screen. Just moving code around until it "works" is a solution, but not a good one, since a subsequent code modification may render it all unstable again. I can't see any kind of stabilizing code at all in your example apart from the $d012 polling, so I guess it was/is simply stable by luck and of course that means it'll break if you add music (or pretty much anything at all).
If a double IRQ raster suddenly turns unstable it's pretty much the same thing: It looks stable, but the code is incorrect and any perceived stability can be attributed to chance. I wouldn't go so far as to recommend you always play music while testing; a main loop filled with sufficient nonsensical opcodes of varying cycle lengths is IME enough to reveal any false stability. |
Previous - 1 | 2 - Next |