From 60a75779c5aafe7839ff3a8ae58dceb5759cfbf8 Mon Sep 17 00:00:00 2001 From: Mitchell Shibilski-Unkel <133730558+MitchellShibilski-Unkel@users.noreply.github.com> Date: Mon, 6 May 2024 00:07:49 +0000 Subject: [PATCH] RAM --- src/Munix.cpp | 12 ++++++++---- src/RAM.h | 6 ++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 src/RAM.h diff --git a/src/Munix.cpp b/src/Munix.cpp index 51d3e24..405a5f6 100644 --- a/src/Munix.cpp +++ b/src/Munix.cpp @@ -1,10 +1,14 @@ -#include "PyMunix.c" -#include "window/window.h" +#include "PyMunix.h" +#include "RAM.h" -class Munix() { +class Munix { public: void runTerminal() { terminal(); } -} \ No newline at end of file + + void freeRAM(int* bytes) { + Free(bytes); + } +}; \ No newline at end of file diff --git a/src/RAM.h b/src/RAM.h new file mode 100644 index 0000000..44a008e --- /dev/null +++ b/src/RAM.h @@ -0,0 +1,6 @@ +#include + + +void Free(int* ptr) { + free(ptr); +} \ No newline at end of file