[UNTESTED] refactor how instructions are parsed

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-14 10:12:30 +05:30
parent 3cf5cbd024
commit 0b674c7c64
11 changed files with 742 additions and 389 deletions

View File

@@ -6,6 +6,7 @@
#include <fstream>
#include <iostream>
#include <memory>
#include <unistd.h>
#include <vector>
// NOLINTBEGIN
@@ -83,7 +84,10 @@ main(int argc, const char* argv[]) {
Memory memory(std::move(bios), std::move(rom));
Bus bus(memory);
Cpu cpu(bus);
cpu.step();
while (true) {
cpu.step();
sleep(1);
}
}
return 0;
}