diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-01 22:20:53 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-01 22:20:53 +0100 |
commit | 64c046ab4b00ffeab223364b70b75588bac31978 (patch) | |
tree | 0c52c1f56052373fd409993d26fc5d1dc4e8d52f | |
parent | f66c2cf7a4d4f5fb4b533a79c2a1f92901a09d98 (diff) | |
download | gold-mine-run-64c046ab4b00ffeab223364b70b75588bac31978.tar.gz gold-mine-run-64c046ab4b00ffeab223364b70b75588bac31978.zip |
Move the data definitions to its own include
-rw-r--r-- | src/data.h | 8 | ||||
-rw-r--r-- | src/main.c | 4 |
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 @@ -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 */ |