diff options
Diffstat (limited to 'zpu/roadshow/roadshow/helloworld/test.c')
-rw-r--r-- | zpu/roadshow/roadshow/helloworld/test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/zpu/roadshow/roadshow/helloworld/test.c b/zpu/roadshow/roadshow/helloworld/test.c new file mode 100644 index 0000000..5243468 --- /dev/null +++ b/zpu/roadshow/roadshow/helloworld/test.c @@ -0,0 +1,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); + } +} |