A86: Re: Interrupts
[Prev][Next][Index][Thread]
A86: Re: Interrupts
>
>OK, simple question time. What happens when you enable/disable interrupts?
I'm
>assuming that, in the code:
>
>di
>
disable interrupts, I think you mean
>will enable interrupts and
>
>ei
>
>will enable interrupts. What happens when you do this? How many T-states
does
>each take? Most importantly, would it be wise or a good idea to
>disable/renable interrups during "Computationally Expensive" parts of code?
The z80 pauses execution and calls an interrupt sub routine about 200 times
a second. You really have no reason to keep the interrupts enabled unless
your routine uses them or unless you need to call _getkey or something like
that.