megadrive_test2
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/vdp.c Tue Mar 14 05:59:33 2017 +0200 1.3 @@ -0,0 +1,9 @@ 1.4 +#include "vdp.h" 1.5 + 1.6 +void vdp_init(void) 1.7 +{ 1.8 + vdp_setreg(VDP_REG_MODE1, VDP_MODE1_BASE); 1.9 + vdp_setreg(VDP_REG_MODE2, VDP_MODE2_BASE | VDP_MODE2_DISP); 1.10 + 1.11 + vdp_set_autoinc(2); 1.12 +}