projects
/
mdlife
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed vdp init
[mdlife]
/
src
/
hwregs.h
diff --git
a/src/hwregs.h
b/src/hwregs.h
index
8e21f25
..
4455811
100644
(file)
--- a/
src/hwregs.h
+++ b/
src/hwregs.h
@@
-29,6
+29,12
@@
#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>