diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-11-24 22:27:15 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-11-24 22:27:15 +0000 |
commit | 59c9a162631b78eff84e2002478413b98c2cffbb (patch) | |
tree | 7d604206a2deb29c9f097ff1f3b7de78f44b34a3 /scripts/romload/firmware.c | |
download | butterstick-59c9a162631b78eff84e2002478413b98c2cffbb.tar.gz butterstick-59c9a162631b78eff84e2002478413b98c2cffbb.zip |
Move all files
Diffstat (limited to 'scripts/romload/firmware.c')
-rw-r--r-- | scripts/romload/firmware.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/romload/firmware.c b/scripts/romload/firmware.c new file mode 100644 index 0000000..4bc9ed8 --- /dev/null +++ b/scripts/romload/firmware.c @@ -0,0 +1,21 @@ +#include <stdio.h> +#include <stdlib.h> + +int x1 = 1000; +int x2 = 2000; + +void main() +{ + int z; + x1 = 50; + x2 = 50; + + printf("hello\n"); + z = (x1 + x2); + if (z == 100) + printf("TEST PASSED\n"); + else + printf("TEST FAILED, z=%d\n", z); + exit(0); +} + |