summaryrefslogtreecommitdiffstats
path: root/scripts/romload/firmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/romload/firmware.c')
-rw-r--r--scripts/romload/firmware.c21
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);
+}
+