aboutsummaryrefslogtreecommitdiff
path: root/src/memory.h
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-08 00:37:41 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-08 00:37:41 +0000
commit1cf06615f97bc27f732a880e89e9366140095bf1 (patch)
treea02c356c64b150c164fd72254da33d872f572957 /src/memory.h
downloadcoursework-1cf06615f97bc27f732a880e89e9366140095bf1.tar.gz
publishHEADmaster
Diffstat (limited to 'src/memory.h')
-rw-r--r--src/memory.h22
1 files changed, 22 insertions, 0 deletions
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 @@
1#ifndef INCLUDED_MEMORY_H
2#define INCLUDED_MEMORY_H
3
4#include <inttypes.h>
5#include <raylib.h>
6#include "cpus.h"
7
8typedef struct memory {
9 u8 entries[MEMORY_SIZE];
10 Rectangle rec;
11 const char *label;
12 Vector2 label_origin;
13 Vector2 label_position;
14 u8 highlighted;
15} *MEMORY;
16
17extern MEMORY memory;
18
19void init_memory (MEMORY, CPU any);
20void draw_memory (MEMORY);
21
22#endif