Finish detecting BIOS type

This commit is contained in:
2024-04-01 16:43:54 -05:00
parent ab3b94da97
commit d0f5731bdb
7 changed files with 150 additions and 142 deletions

View File

@@ -83,6 +83,14 @@ namespace JabyEngine {
static constexpr T Yellow(uint8_t base = 0xFF) {
return T::from_rgb(base, base, 0x0);
}
static constexpr T Purple(uint8_t base = 0xFF) {
return T::from_rgb(base, 0x0, base);
}
static constexpr T Turquoise(uint8_t base = 0xFF) {
return T::from_rgb(0x0, base, base);
}
};
}

View File

@@ -19,30 +19,30 @@ R31 ra Return address (set by function call)
namespace JabyEngine {
namespace BIOS {
struct Version {
enum Type {
Unkown,
Devboard,
PS1,
PS2,
PS3,
PSCompatible, // internal usage only
No$psx,
XEBRA
};
struct {
uint8_t day;
uint8_t month;
uint16_t year;
} date;
Type type;
const char* kernel_maker;
const char* version_str;
const char* gui_version;
const char* copyright;
};
enum struct Type {
Devboard,
PS1,
PS2,
PS3,
PSCompatible, // internal usage only
No$psx,
XEBRA,
Unkown
};
Version get_bios_version();
extern Type type;
extern const Version version;
}
namespace SysCall {