mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-06 11:01:38 +12:00
Start adding memory stuff
This commit is contained in:
parent
2057e0c447
commit
905c7ed770
8 changed files with 77 additions and 10 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "dynarmic/interface/A32/a32.h"
|
||||
#include "dynarmic/interface/A32/config.h"
|
||||
#include "helpers.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
class MyEnvironment final : public Dynarmic::A32::UserCallbacks {
|
||||
public:
|
||||
|
@ -79,9 +80,11 @@ public:
|
|||
class CPU {
|
||||
MyEnvironment env;
|
||||
Dynarmic::A32::Jit jit{ {.callbacks = &env} };
|
||||
Memory& mem;
|
||||
|
||||
public:
|
||||
CPU();
|
||||
CPU(Memory& mem);
|
||||
void reset();
|
||||
|
||||
void setReg(int index, u32 value) {
|
||||
jit.Regs()[index] = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue