Re: [問題] 同樣輸出pulse想從不同腳位送出..

作者: mosquito520 ( )   2013-09-10 01:10:46
: → ksmrt0123:我很疑惑怎樣的code是'醜'但效能好的? 請問有例子嗎? 09/10 00:18
常見的寫法
#include <stdio.h>
#include <8051.h>
void putchar(char ch){
while(!TI);
TI = 0;
SBUF = ch;
}
void main(void)
{
printf("hello, world");
}
SDCC編譯出來的結果
Other memory:
Name Start End Size Max

Links booklink

Contact Us: admin [ a t ] ucptt.com