initialise a memory structure or smth

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-11 10:23:46 +05:30
parent 84c68a4e00
commit 332f0b87d6
26 changed files with 763 additions and 163 deletions

View File

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