Page 1 of 1

Re: Missed Interrupts with DI+IM2 in assembly

Posted: Sun Nov 26, 2017 1:07 pm
by Ralf
And I'd like to add one more, maybe obvious thing - you don't have to play music in interrupt routine :)

You can do it anywhere in your code, just do it during each frame. Some purists may say that if you call music player sometimes at frame beginning and sometimes at frame end then there would be loss of music quality. But I did it in my games before and nobody noticed and complained ;)

Re: Missed Interrupts with DI+IM2 in assembly

Posted: Sun Nov 26, 2017 7:12 pm
by 1024MAK
Ast A. Moore wrote: Sun Nov 26, 2017 12:46 pm
1024MAK wrote: Sun Nov 26, 2017 12:27 pm The Z80 CPU will only detect a maskable (normal) interrupt when it samples the /INT pin at the end of an instruction (assuming that /RESET, /BUSRQ and /NMI are all inactive
Tut-tut. Use the Force (of BBCode), Mark. It’s INT, RESET, BUSRQ, and NMI. :D
Yeah, I know :?
But I composed this post off-line in a text editer. Then had to post in a rush, as channel 4's formula 1 coverage was about to start and I had a few other things to do before sitting down to watch it and eat lunch...

Mark

Re: Missed Interrupts with DI+IM2 in assembly

Posted: Sun Nov 26, 2017 7:53 pm
by Ast A. Moore
1024MAK wrote: Sun Nov 26, 2017 7:12 pm
Ast A. Moore wrote: Sun Nov 26, 2017 12:46 pm Tut-tut. Use the Force (of BBCode), Mark. It’s INT, RESET, BUSRQ, and NMI. :D
Yeah, I know :?
But I composed this post off-line in a text editer. Then had to post in a rush, as channel 4's formula 1 coverage was about to start and I had a few other things to do before sitting down to watch it and eat lunch...

Mark
You humans are so weird. You watch TV and each lunch. So bizarre.