initial cpu structure :thonk:

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-08-27 21:40:55 +05:30
parent ad64b1e8d1
commit 84c68a4e00
20 changed files with 449 additions and 42 deletions

14
src/bus.hh Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
#include <fstream>
#include <vector>
class Bus {
std::vector<uint8_t> data;
public:
Bus() = default;
Bus(std::istream& ifile)
: data(std::istreambuf_iterator<char>(ifile),
std::istreambuf_iterator<char>()) {}
};