From: notaz Date: Wed, 23 Jan 2008 19:42:26 +0000 (+0000) Subject: svp is working!!! X-Git-Tag: v1.85~597 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=4fd5325d6261aad2cc072c563b7cc2798184c830;hp=4bfc6da406295968daaa29db151c47d974ddc6a3;p=picodrive.git svp is working!!! git-svn-id: file:///home/notaz/opt/svn/PicoDrive@327 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/Pico/carthw/svp/ssp16.c b/Pico/carthw/svp/ssp16.c index 5b2ae9c..1872c7f 100644 --- a/Pico/carthw/svp/ssp16.c +++ b/Pico/carthw/svp/ssp16.c @@ -348,10 +348,8 @@ static void write_unknown(u32 d) // 4 static void write_ST(u32 d) { - if ((rST ^ d) & 7) { - elprintf(EL_SVP, "ssp16: RPL %i -> %i @ %04x", rST&7, d&7, GET_PPC_OFFS()); -// running = 0; - } + if ((rST ^ d) & 0x0007) elprintf(EL_SVP, "ssp16: RPL %i -> %i @ %04x", rST&7, d&7, GET_PPC_OFFS()); + if ((rST ^ d) & 0x0f98) elprintf(EL_SVP, "ssp16: FIXME ST %04x -> %04x @ %04x", rST, d, GET_PPC_OFFS()); rST = d; } @@ -392,7 +390,9 @@ static void write_PC(u32 d) // 7 static u32 read_P(void) { - rP.v = (u32)rX * rY * 2; + int m1 = (signed short)rX; + int m2 = (signed short)rY; + rP.v = (m1 * m2 * 2); // correct? return rP.h; }