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

plz help with problem

HI. I found this code on my interenet computer. it does not work. plz help?

<pre>
#include <reg51.h>
sbit pin = P1^0;
main()
{ P1 = 0x00; TMOD = 0x09;
loop:TL0 = 0xAF; TH0 = 0x3C; pin = 1; TR0 = 1; while(TF0 == 0) {}

TL0 = 0xAF; TH0 = 0x3C; pin = 0; while(TF0 == 0) {} goto loop;
} </pre>

0