From a66c7433c2c11b8b6c99142277ed4e16b1a2a465 Mon Sep 17 00:00:00 2001 From: 0x221E <0x221E@0xinfinity.dev> Date: Sun, 12 Apr 2026 16:59:40 +0200 Subject: initial commit --- src/main.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/main.cpp (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..5dd1edb --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,35 @@ +#include + +#include "Userspace.h" +#include "GUI.h" +#include + +// nop +// mov eax, 0xF4 +// mov ecx, 0x8000 +// mov edx, 0x8000 +// add DWORD PTR [0x8011], eax +uint8_t test[] = { + 0x90, + 0xB8, 0xF4, 0x00, 0x00, 0x00, + 0xB9, 0x00, 0x80, 0x00, 0x00, + 0xBA, 0x00, 0x80, 0x00, 0x00, + 0x01, 0x05, 0x16, 0x80, 0x00, 0x00, + 0x00, +}; + +int main(int argc, char** argv) { + Userspace user; + GUI gui(user); + + user.Upload2Memory(test, 23); + std::thread tuserspace(&Userspace::Run, &user); + + gui.Run(); + + user.Exit(); + + tuserspace.join(); + + return 0; +} -- cgit v1.2.3