diff options
| author | Alexey Gavrilov <rebovas@yahoo.com> | 2023-08-20 20:13:59 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <rebovas@yahoo.com> | 2023-08-20 20:13:59 +0700 |
| commit | 47844a0db257264e7f8c5c38e07745601c884a7e (patch) | |
| tree | 60642b3e3876c3d1e48bc19ee2026a5ec39e4e65 /kernel/kernel.c | |
| parent | b82ccebd3a0cce28177b5fac046139e2de7737fa (diff) | |
Edit README, Makefile, ld conf
Diffstat (limited to 'kernel/kernel.c')
| -rw-r--r-- | kernel/kernel.c | 22 |
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 |
