Erratic interrupt behaviour

I have a problem that sound similar to the one mentioned here http://www.keil.com/support/docs/349.htm

Where can I find the Siemens C166 hardware users guide?

It seems that my interrupts are not being disabled when I try to clear the local interrupt flags. It seems the behaviour of my C program is dependant on the assembly languages cycle count. I can add a NOP to a random place and change the behaviour of my program.

More questions in this forum