hello world

This commit is contained in:
2025-03-01 22:56:30 +03:00
parent bf50fb854a
commit 4123b547da
5 changed files with 17 additions and 1 deletions

5
.gitignore vendored
View File

@@ -36,3 +36,8 @@
*.x86_64 *.x86_64
*.hex *.hex
# VScode stuff
*.code-workspace
# Other
*.img

5
build.bat Normal file
View File

@@ -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:.
)

BIN
kosh Normal file

Binary file not shown.

6
main.c Normal file
View File

@@ -0,0 +1,6 @@
#include <stdio.h>
int main()
{
printf("Hello world!");
}