summaryrefslogtreecommitdiffstats
path: root/software/pong3/GPU.h
diff options
context:
space:
mode:
authorroot <root@lab.panaceas.james.local>2013-10-11 09:38:08 +0100
committerroot <root@lab.panaceas.james.local>2013-10-11 09:38:08 +0100
commitcce17fefd6e042c0a40a9af3bdfdbb6bc11ded34 (patch)
tree0ca5d9fd49c36201cd2fffbbd287fe185755b778 /software/pong3/GPU.h
parent31ca140f04a6c3188376ed8230f345824f86a313 (diff)
downloadpong-cce17fefd6e042c0a40a9af3bdfdbb6bc11ded34.tar.gz
pong-cce17fefd6e042c0a40a9af3bdfdbb6bc11ded34.tar.bz2
pong-cce17fefd6e042c0a40a9af3bdfdbb6bc11ded34.zip
800x600
Diffstat (limited to 'software/pong3/GPU.h')
-rw-r--r--software/pong3/GPU.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/software/pong3/GPU.h b/software/pong3/GPU.h
new file mode 100644
index 0000000..3883381
--- /dev/null
+++ b/software/pong3/GPU.h
@@ -0,0 +1,29 @@
+/*
+ * 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
+
+
+#endif /* GPU_H_ */