fork download
  1. #include <reg52.h>
  2. sfr CKCON = 0x8F,
  3. void delay(unsined long);
  4. void main()
  5. {
  6. unsigned int j;
  7.  
  8. CKCON =0x01;
  9. P2 = 0x00;
  10. while(1)
  11. {
  12. }
  13. P2 = 0x01;
  14. delay (50000);
  15. P2 = 0x01;
  16. delay (50000);
  17. P2 = 0x01;
  18. delay (50000);
  19.  
  20. }
Success #stdin #stdout 0.02s 25656KB
stdin
Standard input is empty
stdout
#include <reg52.h>
	sfr CKCON = 0x8F,
	void delay(unsined long);
	void main()
	{
	unsigned int j;
	
	CKCON =0x01;
	P2 = 0x00;
	while(1)
	{
	}
		P2 = 0x01;
		delay (50000);
			P2 = 0x01;
		delay (50000);
			P2 = 0x01;
		delay (50000);
	
	}