14 lines
542 B
C
14 lines
542 B
C
// gnoHello.c — GNO/ME shell command demo: prints a greeting + formatted
|
|
// output via standard stdio (libc printf/puts over the GNO console).
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
puts("Hello from llvm816 on GNO/ME!");
|
|
printf("argc=%d argv0=%s\n", argc, (argc > 0 && argv) ? argv[0] : "(none)");
|
|
printf("sum 1..10 = %d, hex = %x\n", 55, 0xC0DE);
|
|
|
|
*(volatile uint16_t *)0x025000UL = 0xC0DE; // harness marker
|
|
for (volatile unsigned long i = 0; i < 600000UL; i++) {}
|
|
return 0;
|
|
}
|