diff --git a/.gitignore b/.gitignore index 3b8c128..c411a5e 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,8 @@ *.x86_64 *.hex +# VScode stuff +*.code-workspace + +# Other +*.img diff --git a/README.md b/README.md index 54c332d..1552358 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ A command shell for KolibriOS -kosh stands for **KO**libri **SH**ell \ No newline at end of file +kosh stands for **KO**libri **SH**ell diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..49e5742 --- /dev/null +++ b/build.bat @@ -0,0 +1,5 @@ +@echo off +..\..\kolibrios\programs\develop\ktcc\trunk\bin\kos32-tcc.exe -I..\..\kolibrios\programs\develop\ktcc\trunk\libc.obj\include main.c -o kosh +if %errorlevel% == 0 ( + qemu-system-i386 -fda kolibri.img -boot a -m 512 -usbdevice tablet -drive file=fat:rw:. +) diff --git a/kosh b/kosh new file mode 100644 index 0000000..cb5e023 Binary files /dev/null and b/kosh differ diff --git a/main.c b/main.c new file mode 100644 index 0000000..b4b1817 --- /dev/null +++ b/main.c @@ -0,0 +1,6 @@ +#include + +int main() +{ + printf("Hello world!"); +}