@ross : hehe, no doubt, I learn a lot there. I wonder how many cycles cpu takes to switch to supervisor and reverse at exit.
@a/b : CIA is the way to go I guess, because I use a copper lvl 1 irq for vertical sync.
Ok, the pause routine works just fine now. The pb was coming from the fact that I didn't understand how works this keys scan (still I don't to be honest). The flag is set only when the key is pressed down. I assumed it was always when key is down.. So need two flags for pause managment, one for key down and another for switch pause state on/off.
Anyway, thanks @all for help and have a nice sunday.
|