[an error occurred while processing this directive]
|
interrupt_handler:
...
...
#ifdef INTRUUPT_NESTING_IS_ALLOWED
dis ints; // if nesting is allowed
#endif
ax0 = IMASK;
pop STS;
... // save astat, mstat to temp. store
ar = IMASK;
... // modify interrupt masking bits in ar
IMASK = ar;
... // restore astat, mstat from temp. store
push STS;
ar = ax0;
... // modify current IMASK if necessery
IMASK = ar;
#ifdef INTRUUPT_NESTING_IS_ALLOWED
... // IFC modification can be iserted here
ena INTS;
#endif
...
...
rti;
E-mail: info@telesys.ru