ref: ff7b906c28f2707f0ad7736738495a42a3b23ce8
parent: 9cb02ecc484ffa07a0a6052cbd40794572c340e2
author: mkf <mkf@cloud9p.org>
date: Fri Nov 17 04:28:35 EST 2023
add mem.h
--- /dev/null
+++ b/include/mem.h
@@ -1,0 +1,13 @@
+#pragma once
+#define MEM_MAX 480
+#define BLOCKSIZE 64
+#define MEM_BEG 0x7E00
+#define MEM_END 0x7FFFF
+
+#define FREE 0
+#define TAKEN 1
+
+uint8 memap[MEM_MAX * 1024 / BLOCKSIZE];
+
+int _malloc(uint16 size);
+void* malloc(uint16 size);