aboutsummaryrefslogtreecommitdiff
path: root/src/memory.h
blob: 9c348cfb0e018195b9477dbaa57285d816dd7139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef INCLUDED_MEMORY_H
#define INCLUDED_MEMORY_H

#include <inttypes.h>
#include <raylib.h>
#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