megadrive_test1

annotate 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
rev   line source
nuclear@4 1 #include "vdp.h"
nuclear@4 2
nuclear@4 3 int main(void)
nuclear@4 4 {
nuclear@5 5 VDP_SET_CRAM_ADDR(0);
nuclear@5 6 VDP_SET_CRAM_RGB24(64, 128, 255);
nuclear@5 7 VDP_SET_BGCOLOR(0, 0);
nuclear@5 8 /* enable display */
nuclear@5 9 VDP_SET_REG(0, VDP_REG0_BASE);
nuclear@5 10 VDP_SET_REG(1, VDP_REG1_BASE | VDP_REG1_DISP_BIT);
nuclear@4 11 return 0;
nuclear@4 12 }