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

26
src/debug/debug.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef __DEBUG_LUA_H__
#define __DEBUG_LUA_H__
#include "../syscalls.h"
enum BreakpointCondition
{
Execute = 0,
Write = 1,
ReadWrite = 0b11
};
enum BreakpointLen
{
Byte = 0,
Word = 1,
Dword = 0b11
};
int syscalls_DebugPutc(lua_State* L);
int syscalls_DebugPuts(lua_State* L);
int syscalls_SetMessageArea(lua_State* L);
#endif // __DEBUG_LUA_H__