tests: [WIP] add unit tests for some of the instructions

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-15 14:07:23 +05:30
parent aa96237c37
commit be7deb349a
11 changed files with 445 additions and 173 deletions

View File

@@ -6,6 +6,7 @@
#include <fstream>
#include <iostream>
#include <memory>
#include <ostream>
#include <unistd.h>
#include <vector>
@@ -80,6 +81,9 @@ main(int argc, const char* argv[]) {
return 1;
}
std::flush(std::cout);
std::flush(std::cerr);
{
Memory memory(std::move(bios), std::move(rom));
Bus bus(memory);