megadrive_test2

annotate src/vdp.c @ 0:ce1b05082ac4

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 14 Mar 2017 05:59:33 +0200
parents
children ea70f3da150f
rev   line source
nuclear@0 1 #include "vdp.h"
nuclear@0 2
nuclear@0 3 void vdp_init(void)
nuclear@0 4 {
nuclear@0 5 vdp_setreg(VDP_REG_MODE1, VDP_MODE1_BASE);
nuclear@0 6 vdp_setreg(VDP_REG_MODE2, VDP_MODE2_BASE | VDP_MODE2_DISP);
nuclear@0 7
nuclear@0 8 vdp_set_autoinc(2);
nuclear@0 9 }