sam-users  

MC Interrupts

Calvin Allett
Tue, 15 May 2007 09:37:23 -0700

I`ve come across a little routine on an old disk magazine that provides four 
8*8 pixel masked `sprites` via a MC interrupt routine, it seems pretty fast, 
and am wondering about trying to use it, however I`m wondering if it`s possible 
to alter an interrupt routine so that it only runs the code every 2nd or third 
frame?

I know the routine would be called every frame, but what I mean is, it slows 
Basic down by about 20 %, and there`s no way basic is gonna run a loop at 50 
fps to alter the coords of the `sprites`, so would it seem feasable to be able 
to alter the routine with a flag, so that it jumps straight back every other 
frame and only draws the other frames?

I`ve been wondering this before, in relation to the Mayhem accelerator, as if 
wanting to write a game to run at 20Mhz (about four times normal speed with 
uncontended RAM?) then if I`d be able to run an intterupt music player, but 
have the player altered to only play the music every 4th frame, to keep tune at 
correct speed approx? I`m not sure how the timing would work for MC coder`s 
when running a faster machine, so I`m probably talking crap here :)

Oh, and while I`m rambling, does anybody know if there exists an interrupt 
player for AY music, or just players to incorporate into MC?

Thanks.

Calvin...

                
---------------------------------
 What kind of emailer are you? Find out today - get a free analysis of your 
email personality. Take the quiz at the Yahoo! Mail Championship.