X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPico%2FMemory.c;h=22166918e7ca9519cd28716b1f268fd4ead96d90;hb=1e6b5e39f45341524d90a4c71776e92a6d2d6fe5;hp=2995c0e2bd69fcaf9e2c1d4a15973e487d337d3b;hpb=d49b10c2f2c58e03a1be8b3b9e8bfc08703e0ce0;p=picodrive.git diff --git a/Pico/Pico/Memory.c b/Pico/Pico/Memory.c index 2995c0e..2216691 100644 --- a/Pico/Pico/Memory.c +++ b/Pico/Pico/Memory.c @@ -31,6 +31,7 @@ static u32 PicoReadPico8(u32 a) { switch (a & 0x1f) { + case 0x01: d = PicoPicohw.r1; break; case 0x03: d = PicoPad[0]&0x1f; // d-pad d |= (PicoPad[0]&0x20) << 2; // red button -> C @@ -143,6 +144,7 @@ static void PicoWritePico16(u32 a,u16 d) // if (a == 0x800010) dump(d); if (a == 0x800010) PicoPicohw.fifo_bytes += 2; + if (a == 0x800012) PicoPicohw.r12 = d; elprintf(EL_UIO, "w16: %06x, %04x", a&0xffffff, d); }