Emulator: Store registers separately

This commit is contained in:
Riyyi
2022-08-19 21:49:23 +02:00
parent dcc517c28d
commit e3c3875195
3 changed files with 35 additions and 26 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ int main(int argc, char* argv[])
// Get shared register
print("{}\n", *Emu::the().processingUnit("cpu")->sharedRegister("a"));
print("{}\n", *Emu::the().processingUnit("cpu")->sharedRegister("bc"));
print("{}\n", *Emu::the().processingUnit("cpu")->sharedRegister("b"));
while (true) {
Emu::the().update();