Hello World functional

This commit is contained in:
2022-08-28 11:15:13 +02:00
parent 3d1d19ea90
commit c9e5496735
13 changed files with 234 additions and 16 deletions

View File

@@ -55,12 +55,12 @@
},
"settings": {
"C_Cpp.default.includePath": [
"./"
"../../include"
],
"C_Cpp.default.compilerPath": "",
"C_Cpp.default.cStandard": "c17",
"C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.intelliSenseMode": "",
"C_Cpp.default.intelliSenseMode": "linux-gcc-x86",
"C_Cpp.default.compilerArgs": [
],
"C_Cpp.default.defines": [
@@ -69,6 +69,9 @@
"files.exclude": {
"**/*.o": true,
"**/*.dep": true
},
"files.associations": {
"stdio.h": "c"
}
}
}

View File

@@ -1,8 +1,11 @@
ARTIFACT = libJabyEngine
BUILD_DIR = bin
CCFLAGS += -I../../include
include ../../lib/Wildcard.mk
SRCS = $(call rwildcard, src, c cpp)
SRCS += src/syscall_printf.asm
include ../../lib/Makefile
LIB_DIR = ../../lib/$(CONFIG_NAME)

View File

@@ -0,0 +1,6 @@
#include <stdio.h>
void _start() {
//call main here
printf("Hello Planschbecken c:\n");
}

View File

@@ -1,5 +0,0 @@
void _start() {
//call main here
}

View File

@@ -0,0 +1,12 @@
.set push
.set noreorder
#.section .ramtext, "ax", @progbits
.align 2
.global __syscall_printf
.type __syscall_printf, @function
__syscall_printf:
li $t2, 0xa0
jr $t2
li $t1, 0x3f