megadrive_test2

annotate src/io.c @ 10:ca7108a82867

fixed gamepad input on real megadrive
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 24 Jun 2017 02:33:52 +0300
parents
children
rev   line source
nuclear@10 1 #include "io.h"
nuclear@10 2
nuclear@10 3 void io_init(void)
nuclear@10 4 {
nuclear@10 5 io_setdir(0, 0x40);
nuclear@10 6 io_setdir(1, 0x40);
nuclear@10 7
nuclear@10 8 IO_REG_DATA(0) = 0;
nuclear@10 9 IO_REG_DATA(1) = 0;
nuclear@10 10 }