aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-01 22:20:53 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-01 22:20:53 +0100
commit64c046ab4b00ffeab223364b70b75588bac31978 (patch)
tree0c52c1f56052373fd409993d26fc5d1dc4e8d52f
parentf66c2cf7a4d4f5fb4b533a79c2a1f92901a09d98 (diff)
downloadgold-mine-run-64c046ab4b00ffeab223364b70b75588bac31978.tar.gz
gold-mine-run-64c046ab4b00ffeab223364b70b75588bac31978.zip
Move the data definitions to its own include
-rw-r--r--src/data.h8
-rw-r--r--src/main.c4
2 files changed, 9 insertions, 3 deletions
diff --git a/src/data.h b/src/data.h
new file mode 100644
index 0000000..6fc1257
--- /dev/null
+++ b/src/data.h
@@ -0,0 +1,8 @@
+#ifndef _DATA_H
+#define _DATA_H
+
+/* embedded data */
+extern const uint8_t binary_palette_start[];
+extern const uint8_t binary_sprites_start[];
+
+#endif // _DATA_H
diff --git a/src/main.c b/src/main.c
index dd3cffa..a8a6b77 100644
--- a/src/main.c
+++ b/src/main.c
@@ -5,11 +5,9 @@
#include <conio.h>
+#include "data.h"
#include "vga.h"
-/* embedded data */
-extern const uint8_t binary_palette_start[];
-
int main(int argc, char *argv[])
{
/* set VGA 320x200, 256 col */