That would clear the lines and disable all hardware interrupts, though I don't know about this normal mode and interrupt mode for port 3. I don't know how a difference can be distiguished.Right, but that's not what I was trying to say. Consider the following interrupt routine:
Code:
ex af,af'
ld a,8
out (3),a
ex af,af'
ei
reti
That would clear any interrupt line right? Now the question is, does it also disable all interrupts or does it only clear the interrupt lines and leave the mask intact?
The only way I can see to test the modes would be to DI and wait for an interrupt to generate.
Yup. If you only DI though the lines will set and it will generate upon EI.Quote:
the timers keep counting even if they are ignored by port 3. so if an interrupt is generated and not ack the timer will continue counting and generate another when cycle is complete, if possible.
You mean disabling the timer interrupt (either through port 3 or using di) and then reenabling it, doesn't result in a phase change? Or in other words, the actual timer doesn't stop pulsing, but the pulses are just ignored.
I wish it didn't though, we could of had flawless grey by now.