summaryrefslogtreecommitdiffstats
path: root/src/GPU.h
diff options
context:
space:
mode:
authorroot <root@lab.panaceas.james.local>2013-10-12 12:13:58 +0100
committerroot <root@lab.panaceas.james.local>2013-10-12 12:13:58 +0100
commit3b3237c2ba1bb29f7d43fda9fdbc08bd0c32e5f9 (patch)
tree1ca30cdbd30e7de4407d3a35838318b146cad3b9 /src/GPU.h
parent8b91c2f0452ce241a2f69481e156d5fd313955dc (diff)
downloadpong-3b3237c2ba1bb29f7d43fda9fdbc08bd0c32e5f9.tar.gz
pong-3b3237c2ba1bb29f7d43fda9fdbc08bd0c32e5f9.tar.bz2
pong-3b3237c2ba1bb29f7d43fda9fdbc08bd0c32e5f9.zip
first_full_makefile
Diffstat (limited to 'src/GPU.h')
-rw-r--r--src/GPU.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/GPU.h b/src/GPU.h
new file mode 100644
index 0000000..fef1499
--- /dev/null
+++ b/src/GPU.h
@@ -0,0 +1,31 @@
+/*
+ * GPU.h
+ *
+ * Created on: Oct 11, 2013
+ * Author: root
+ */
+
+#ifndef GPU_H_
+#define GPU_H_
+
+#define GPU_OFFSET 0x80
+#if 0
+#define GPU_WIDTH 640
+#define GPU_HEIGHT 480
+#else
+#define GPU_WIDTH 800
+#define GPU_HEIGHT 600
+#endif
+
+#define GPU_REG_BLANK 0x0
+#define GPU_REG_SPRITE_X 0x1
+#define GPU_REG_SPRITE_Y 0x2
+#define GPU_REG_BAT0_Y 0x3
+#define GPU_REG_BAT1_Y 0x4
+#define GPU_REG_SPRITE_COLOUR 0x5
+#define GPU_REG_SPRITE_BASE 0x10
+
+#define GPU_RGB(r,g,b) (((r) << 6) | ((g) << 3) | (b))
+
+
+#endif /* GPU_H_ */