megadrive_test1

view src/main.c @ 5:f99eab59e7dc

clarified the C code by using VDP macros
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 01 Feb 2017 14:40:19 +0200
parents e7138066c7ea
children 862f8a034cae
line source
1 #include "vdp.h"
3 int main(void)
4 {
5 VDP_SET_CRAM_ADDR(0);
6 VDP_SET_CRAM_RGB24(64, 128, 255);
7 VDP_SET_BGCOLOR(0, 0);
8 /* enable display */
9 VDP_SET_REG(0, VDP_REG0_BASE);
10 VDP_SET_REG(1, VDP_REG1_BASE | VDP_REG1_DISP_BIT);
11 return 0;
12 }