转载 http://bbs.yahoo.cn/read-htm-tid-1203793.html
#include <REG52.H>
#include <stdio.h>
#ifdef MONITOR51
char code reserve [3] _at_ 0x23;
#endif
void main (void) {
#ifndef MONITOR51
SCON=0x50;
TMOD=0x20;
TH1 =0xfd;
TL1 =0xfd;
TR1 = 1;
TI = 1;
#endif
while (1) {
printf ("Hello World\n");
}
}
文章评论(0条评论)
登录后参与讨论