summaryrefslogtreecommitdiffstats
path: root/zpu/roadshow/roadshow/helloworld/test.c
blob: 524346830853eedc3586d5702ae515e5ea947c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* zpu-elf-gcc -g -Wl,--relax test.c -phi -o hello.elf */
int main(int argc, char **argv)
{
	for (;;)
	{
		int c;
		printf("Hello world!\n");
		printf("Press any key!\n");
		c=inbyte();
		printf("You pressed (%02x) '%c'\n", c, c);
	}
}
OpenPOWER on IntegriCloud