extern _gp; asm("la $28,_gp"); asm("j main"); int main(void) { int i; unsigned char c; unsigned char buf[256]; #if 0 /* U-Bootから実行する場合は初期化しない(初期化済み) */ /* コンソール用UART初期化 */ CPU_UartInitialize(); #endif loop: CPU_UartPutch('\n'); CPU_UartPutch('?'); CPU_UartGets(buf); if(*buf=='-') goto fin; dismips(buf,""); goto loop; fin: return 0; }