summaryrefslogtreecommitdiffstats
path: root/kernel/kernel.c
diff options
context:
space:
mode:
authorAlexey Gavrilov <rebovas@yahoo.com>2023-08-20 20:13:59 +0700
committerAlexey Gavrilov <rebovas@yahoo.com>2023-08-20 20:13:59 +0700
commit47844a0db257264e7f8c5c38e07745601c884a7e (patch)
tree60642b3e3876c3d1e48bc19ee2026a5ec39e4e65 /kernel/kernel.c
parentb82ccebd3a0cce28177b5fac046139e2de7737fa (diff)
Edit README, Makefile, ld conf
Diffstat (limited to 'kernel/kernel.c')
-rw-r--r--kernel/kernel.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/kernel/kernel.c b/kernel/kernel.c
index 1d734c9..9a901b1 100644
--- a/kernel/kernel.c
+++ b/kernel/kernel.c
@@ -1,4 +1,22 @@
-int main()
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "../arch/x86/io/GlobalObj.h"
+#include "../arch/x86/inc/TypeConverter.h"
+
+void main()
{
- return 0;
+ VGADisplay d;
+ IntConverter conv;
+
+ unsigned int i = 124;
+
+ d << conv.intToChar(i);
+ d << "Hello, world!\tHello, world!";
+ for(int i = 0; i < 10; i++)d << "\tHello!";
};
+
+#ifdef __cplusplus
+};
+#endif