From 1cf06615f97bc27f732a880e89e9366140095bf1 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Sun, 8 Nov 2026 03:37:41 +0300 Subject: publish --- src/memory.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/memory.h (limited to 'src/memory.h') diff --git a/src/memory.h b/src/memory.h new file mode 100644 index 0000000..9c348cf --- /dev/null +++ b/src/memory.h @@ -0,0 +1,22 @@ +#ifndef INCLUDED_MEMORY_H +#define INCLUDED_MEMORY_H + +#include +#include +#include "cpus.h" + +typedef struct memory { + u8 entries[MEMORY_SIZE]; + Rectangle rec; + const char *label; + Vector2 label_origin; + Vector2 label_position; + u8 highlighted; +} *MEMORY; + +extern MEMORY memory; + +void init_memory (MEMORY, CPU any); +void draw_memory (MEMORY); + +#endif -- cgit v1.3.1