Ad Code

Why IF & TF are cleared?

Why IF(intterupt Flag) & TF(Trap Flag) are cleared?

The interrupt mechanism automatically clears IF and TF otherwise there would an infinite recursion of the
single step interrupt. The TF is set in the flags on the stack so another interrupt will comes after one more
instruction is executed after the return of the interrupt.
Reactions

Post a Comment

0 Comments