This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interrupt is not generated when running simulator.

When I insert a breakpoint in an interrupt, ex. Interrupt 0. Then, I generate an interrupt, using PORT3, in a button that I created for Toolbox. However, the interrupt is not generated, if the simulator is running. It is only generated when I debug it in steps. Here is the code of the debug function:

SIGNAL void GenInterrupt(void)
{
	exec("G");
	_WBYTE(x:0x8008, 0);
	PORT3 &= 0xFB;
	twatch(10);
	PORT3 |= 0x04;
	twatch(1056);
	_WBYTE(x:0x8008, 1);
	PORT3 &= 0xFB;
	twatch(10);
	PORT3 |= 0x04;
	twatch(1056);
	_WBYTE(x:0x8008, 0x40);
	PORT3 &= 0xFB;
	twatch(10);
	PORT3 |= 0x04;
	twatch(1056);
	_WBYTE(x:0x8008, 0xD2);
	PORT3 &= 0xFB;
	twatch(10);
	PORT3 |= 0x04;
}
Is there something I can do??