summaryrefslogtreecommitdiff
path: root/sim/ucsim/s51.src/test/test_extit.c
blob: f61fd41fc7c61dc2e6e798342af1017824c126fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <reg51.h>

sfr at 0xa6 WDTRST;

void jaj() interrupt 0 { P2= P0; P0++; }

void main()
{
	IT0=0; /* low level triggered */
	IT0=1; /* falling edge triggered */
	EX0=1; /* enable ex #0 */
	EA=1;
	P0=0;
	for(;;);
}