From 54ece9141e9ad8cfb59f2c8315c84b8e247275f7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 10 Aug 2020 16:01:04 +0200 Subject: Started elf parser/loader --- apps/init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/init.c') diff --git a/apps/init.c b/apps/init.c index 813021b..5879c1e 100644 --- a/apps/init.c +++ b/apps/init.c @@ -1,5 +1,6 @@ // MIT License, Copyright (c) 2020 Marvin Borner +#include #include #include #include @@ -9,7 +10,10 @@ void main() { print("Init loaded.\n"); - printf("%x %d %b\n ABC %s", 42, 42, 42, "BAUM"); + char *buf = malloc(10); + conv_base(42, buf, 8, 0); + printf("\n----\nTEST: %s\n----\n", buf); + /* printf("%x %d %b\n ABC %s", 42, 42, 42, "BAUM"); */ sys0(SYS_LOOP); /* sys1(SYS_EXEC, (int)"/a"); */ while (1) { -- cgit v1.2.3