1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-05-28 23:41:32 +00:00
8bitworkshop/presets/arm32/skeleton.armtcc
2023-12-30 16:08:16 -05:00

17 lines
272 B
Plaintext

#include <string.h>
#include <stdio.h>
#define SERIAL_OUT ((int*)0x4000048)
void putchar_(char c) {
*SERIAL_OUT = c;
}
int main() {
int x = 2024*2;
x /= 2; // TODO: we need this to bring in __aeabi_uldivmod() etc.
printf("Hello World! %d\n", x);
return 0;
}