Start to display BIOS information

This commit is contained in:
2024-03-30 11:57:07 -05:00
parent a8fafdc32e
commit 5b53383d80
6 changed files with 132 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
#include <string.h>
START_C_FUNCTIONS
size_t strlen(const char *str) {
const char* end = str;
for(; *end; ++end);
return(end - str);
}
END_C_FUNCTIONS

View File

@@ -0,0 +1,14 @@
#include <PSX/System/syscalls.hpp>
namespace JabyEngine {
namespace SysCall {
BIOSVersion get_bios_version() {
BIOSVersion version;
version.date_bcd = *reinterpret_cast<uint32_t*>(0xBFC00100);
version.kernel_maker = reinterpret_cast<const char*>(0xBFC00108);
version.gui_version = reinterpret_cast<const char*>(0xBFC7FF32);
return version;
}
}
}