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

@@ -13,6 +13,7 @@
#include "systemColors.h"
#include "sockets/socket_lua.h"
#include "debug/debug.h"
#include "graphic.h"
@@ -1487,39 +1488,6 @@ static int syscalls_ReadARPConflicts(lua_State* L)
return 1;
}
static int syscalls_DebugPuts(lua_State* L)
{
_ksys_debug_puts(luaL_checkstring(L, 1));
return 0;
}
static int syscalls_DebugPutc(lua_State* L)
{
_ksys_debug_putc(*luaL_checkstring(L, 1));
return 0;
}
struct DebugMessageArea
{
int Size;
int Used;
char data[];
};
static int syscalls_SetMessageArea(lua_State* L)
{
struct DebugMessageArea* p = luaL_checkinteger(L, 1);
asm_inline(
"int $0x40"
:: "a"(69), "b"(0)
);
return 0;
}
/*
** functions for 'syscalls' library
*/