diff --git a/cMIPS/tests/uart.c b/cMIPS/tests/uart.c index 9f537850ea5a23e7220dfc40a9a834a49f052da4..9ab093864b38a38b8a18495027748389729b7d0e 100644 --- a/cMIPS/tests/uart.c +++ b/cMIPS/tests/uart.c @@ -76,8 +76,11 @@ int main(){ uart->cs.ctl = ctrl; char c; - while((c=getc())!='\0') + uart->d.tx = 'a'; + while((c=getc())!='\0'){ + to_stdout(c); Putc(c); + } return 0; }