skyline/app/src/main/cpp/switch/hw/cpu.h
◱ PixelyIon 696ebde527 Rewrite C++ parts and UI update
This update took way way too long to create. However, it was worthwhile. :)
2019-07-25 01:49:43 +05:30

30 lines
473 B
C++

#pragma once
#include <syslog.h>
#include <unicorn/unicorn.h>
namespace lightSwitch::hw {
class Cpu {
private:
uc_engine *uc;
uc_err err;
public:
Cpu();
~Cpu();
void SetHook(void *HookInterrupt);
void Execute(uint64_t address);
void StopExecution();
uint64_t GetRegister(uint32_t regid);
void SetRegister(uint32_t regid, uint64_t value);
uc_engine *GetEngine();
};
}