Feature: Basic GUI that displays hex information, register information, instruction information.

This commit is contained in:
0x221E
2026-02-06 19:20:42 +01:00
parent caadd2f706
commit 88721ee0da
29 changed files with 8476 additions and 91 deletions

View File

@@ -1,26 +1,35 @@
#include <iostream>
#include "Metal.h"
#include "Userspace.h"
#include "GUI.h"
#include <thread>
// nop
// mov eax, 0xF4
// mov ecx, 0x8000
// mov edx, 0x8000
// mov [edx], eax
// add DWORD PTR [0x8011], eax
uint8_t test[] = {
0x90,
0xB8, 0xF4, 0x00, 0x00, 0x00,
0xB9, 0x00, 0x80, 0x00, 0x00,
0xBA, 0x00, 0x80, 0x00, 0x00,
0x89, 0x02,
0x01, 0x05, 0x18, 0x80, 0x00, 0x00,
0x01, 0x05, 0x16, 0x80, 0x00, 0x00,
0x00,
};
int main(int argc, char** argv) {
Metal metal;
metal.Upload2Memory(test, 25);
metal.Run();
Userspace user;
GUI gui(user);
user.Upload2Memory(test, 23);
std::thread tuserspace(&Userspace::Run, &user);
gui.Run();
user.Exit();
tuserspace.join();
return 0;
}