megadrive_test2

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/io.c	Sat Jun 24 02:33:52 2017 +0300
     1.3 @@ -0,0 +1,10 @@
     1.4 +#include "io.h"
     1.5 +
     1.6 +void io_init(void)
     1.7 +{
     1.8 +	io_setdir(0, 0x40);
     1.9 +	io_setdir(1, 0x40);
    1.10 +
    1.11 +	IO_REG_DATA(0) = 0;
    1.12 +	IO_REG_DATA(1) = 0;
    1.13 +}