refactor: reorganize everything

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-10-04 01:41:38 +05:30
parent 36d71a4ee2
commit e0f7f32699
28 changed files with 297 additions and 338 deletions

View File

@@ -7,8 +7,7 @@
#include <fstream>
#include <iostream>
#include <memory>
#include <ostream>
#include <unistd.h>
#include <thread>
#include <vector>
// NOLINTBEGIN
@@ -93,7 +92,7 @@ main(int argc, const char* argv[]) {
matar::Cpu cpu(bus);
while (true) {
cpu.step();
sleep(2);
std::this_thread::sleep_for(std::chrono::seconds(1));
}
} catch (const std::exception& e) {
std::cerr << "Exception: " << e.what() << std::endl;