From 014a2f08eb9b8ee04ad5052fed75a4f4d4306b50 Mon Sep 17 00:00:00 2001 From: Kittycannon Date: Wed, 18 Mar 2026 10:04:45 -0600 Subject: [PATCH] started the RAM --- src/spider/runtime/memory/RAM.hpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/spider/runtime/memory/RAM.hpp b/src/spider/runtime/memory/RAM.hpp index e69de29..0688ae4 100644 --- a/src/spider/runtime/memory/RAM.hpp +++ b/src/spider/runtime/memory/RAM.hpp @@ -0,0 +1,30 @@ +#pragma once + +#include + +namespace spider { + + /** + * A memory container. + * As a reminder, the amount of RAM + * is designed by the host. + */ + class RAM { + private: + u8* _mem; + + public: + + RAM(u64 length); + + ~RAM(); + + public: + + u8& operator[](u64 i); + + u8 operator[](u64 i) const; + + }; + +} \ No newline at end of file