ram, instr reel, runtime, etc

This commit is contained in:
2026-03-20 16:53:02 -06:00
parent 16fa0bf3ea
commit 5a4eb66c78
12 changed files with 390 additions and 20 deletions

View File

@@ -12,13 +12,25 @@ namespace spider {
class RAM {
private:
u8* _mem;
u64 _size;
u8 _oob; // Out of bounds reference
public:
RAM(u64 length);
RAM(const RAM& other);
RAM(RAM&& other) noexcept;
~RAM();
public:
RAM& operator=(const RAM& other);
RAM& operator=(RAM&& other) noexcept;
public: // Unsafe access
u8& operator[](u64 i);
@@ -31,6 +43,12 @@ namespace spider {
u8 at(u64 i) const;
public:
void resize(u64 new_size);
u64 size() const;
};
}