X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico%2Fmemory.c;h=ae26207629da5f5df5bc07b431a2bf30cea796bc;hb=93f9619ed819dee07948416c98ca2f1c70a22666;hp=4bdc84b67af741f5d47502c65a4b93aaeb86b2f2;hpb=45f2f245f51ef0c0d37df3c998595c132bfcaffa;p=picodrive.git diff --git a/pico/pico/memory.c b/pico/pico/memory.c index 4bdc84b..ae26207 100644 --- a/pico/pico/memory.c +++ b/pico/pico/memory.c @@ -1,3 +1,10 @@ +/* + * PicoDrive + * (C) notaz, 2008 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include "../pico_int.h" #include "../memory.h" #include "../sound/sn76496.h" @@ -28,8 +35,8 @@ static u32 PicoRead8_pico(u32 a) { case 0x01: d = PicoPicohw.r1; break; case 0x03: - d = PicoPad[0]&0x1f; // d-pad - d |= (PicoPad[0]&0x20) << 2; // pen push -> C + d = PicoIn.pad[0]&0x1f; // d-pad + d |= (PicoIn.pad[0]&0x20) << 2; // pen push -> C d = ~d; break;