At 04:59 PM 7/21/99 +0200, you wrote:

>The reason why EI enabled the interrupt 1 instruction later had indeed to do
>with the interrupt. If you let the interrupt end with EI:RET then the
>interrupts will be enabled AFTER the RET, hence preventing a stack overload
>when the interrupt-routines occasionally takes too long and can't keep up
>with the interrupt itself.

Nope. That will only make a different of 1 word on the stack. That amount
won't cause an overload.

I think the reason is somewhere inside the Z80.

Bye,
                Maarten


****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to