add debug funcs

+ created debug funcs
+ created `registers` class
+ add it to build

build not passed(
This commit is contained in:
2025-04-09 21:21:10 +05:00
parent e49aa61c67
commit 764e5a1cde
9 changed files with 384 additions and 40 deletions

View File

@@ -28,7 +28,7 @@ int syscalls_drawLine(lua_State* L)
return 0;
}
static void drawText(char* text, uint32_t x, uint32_t y, ksys_color_t color, size_t len, uint64_t backgroundColor)
static inline void drawText(char* text, uint32_t x, uint32_t y, ksys_color_t color, size_t len, uint64_t backgroundColor)
{
bool fillBackground = !(backgroundColor << 32);
@@ -50,16 +50,14 @@ static void drawText(char* text, uint32_t x, uint32_t y, ksys_color_t color, siz
}
static void syscall_drawText(const char* text, uint32_t x, uint32_t y, ksys_color_t color, enum TextScale size, uint32_t len, uint64_t backgroundColor, enum DrawTextEncoding encoding)
static inline void syscall_drawText(const char* text, uint32_t x, uint32_t y, ksys_color_t color, enum TextScale size, uint32_t len, uint64_t backgroundColor, enum DrawTextEncoding encoding)
{
enum DrawTextEncoding_
{
cp866_6x9 = 0,
cp866_8x16 = 1
};
enum scale
{
scale_x1 = 0,