fixed vdp init
[mdlife] / src / hwregs.h
index 8e21f25..4455811 100644 (file)
 #define VDP_CRAM_DMA   0xc0000080
 #define VDP_VSRAM_DMA  0x40000090
 
+#define VDP_RGB(r, g, b) \
+       (((uint16_t)(r) & 0xe) | \
+        (((uint16_t)(g) & 0xe) << 4) | \
+        (((uint16_t)(b) & 0xe) << 8))
+
+
 #ifndef ASM
 #include <stdint.h>