Hello World functional
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
@@ -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)
|
||||
|
6
src/Library/src/BootLoader/start.c
Normal file
6
src/Library/src/BootLoader/start.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void _start() {
|
||||
//call main here
|
||||
printf("Hello Planschbecken c:\n");
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
|
||||
|
||||
void _start() {
|
||||
//call main here
|
||||
}
|
12
src/Library/src/syscall_printf.s
Normal file
12
src/Library/src/syscall_printf.s
Normal 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
|
||||
|
Reference in New Issue
Block a user