Start to display BIOS information
This commit is contained in:
10
src/Library/src/System/string.cpp
Normal file
10
src/Library/src/System/string.cpp
Normal 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
|
14
src/Library/src/System/syscall.cpp
Normal file
14
src/Library/src/System/syscall.cpp
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user