summaryrefslogtreecommitdiffstats
path: root/software/pong3/GPU.h
diff options
context:
space:
mode:
Diffstat (limited to 'software/pong3/GPU.h')
-rw-r--r--software/pong3/GPU.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/software/pong3/GPU.h b/software/pong3/GPU.h
index 3883381..fef1499 100644
--- a/software/pong3/GPU.h
+++ b/software/pong3/GPU.h
@@ -24,6 +24,8 @@
#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_ */