megadrive_test2

view src/main.c @ 3:b22bc95f0cc0

added vim modelines
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 14 Mar 2017 09:11:18 +0200
parents 2560a8be8cb8
children 72ab63f262bf
line source
1 #include <stdint.h>
2 #include "vdp.h"
4 int main(void)
5 {
6 vdp_init();
8 vdp_set_pal_entry(0, 0, 0, 0, 0);
9 vdp_set_pal_entry(0, 1, 7, 0, 3);
10 vdp_set_bgcolor(0, 1);
12 vdp_enable_hintr(12);
13 vdp_enable_vintr();
15 for(;;);
17 return 0;
18 }
20 uint16_t testcol = 0x00c0;
22 void vblank_handler(void)
23 {
24 testcol = 0x00c0;
25 }