X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcarthw%2Fsvp%2FMemory.c;h=8a8474a09496b554d8cb8d364ada67998a44e65f;hb=bad5731da9c9131112dafc9320b5078eb2536232;hp=29d2efc61113e31f961dbd6557ec9fd0e70091b5;hpb=d26dc685a40a0ee8db48d3375b2f59ad515af8eb;p=picodrive.git diff --git a/Pico/carthw/svp/Memory.c b/Pico/carthw/svp/Memory.c index 29d2efc..8a8474a 100644 --- a/Pico/carthw/svp/Memory.c +++ b/Pico/carthw/svp/Memory.c @@ -1,3 +1,12 @@ +// The SVP chip emulator + +// (c) Copyright 2008, Grazvydas "notaz" Ignotas +// Free for non-commercial use. + +// For commercial use, separate licencing terms must be obtained. + + +#include "../../PicoInt.h" #include "../../PicoInt.h" #ifndef UTYPES_DEFINED @@ -11,7 +20,7 @@ typedef unsigned int u32; if (d == 0 && SekPc >= pc_start && SekPc < pc_end) \ { \ if (!clearing_ram) \ - elprintf(EL_UIO, text); \ + elprintf(EL_SVP, text); \ clearing_ram = 1; \ return; \ } @@ -57,10 +66,10 @@ unsigned int PicoSVPRead16(unsigned int a, int realsize) } } else - elprintf(EL_UIO|EL_ANOMALY, "SVP FIXME: unhandled r%i: [%06x] %04x @%06x", realsize, a&0xffffff, d, SekPc); + elprintf(EL_UIO|EL_SVP|EL_ANOMALY, "SVP FIXME: unhandled r%i: [%06x] %04x @%06x", realsize, a&0xffffff, d, SekPc); if (!a15004_looping) - elprintf(EL_UIO, "SVP r%i: [%06x] %04x @%06x", realsize, a&0xffffff, d, SekPc); + elprintf(EL_SVP, "SVP r%i: [%06x] %04x @%06x", realsize, a&0xffffff, d, SekPc); if (a == 0xa15004 && !(d&1)) { if (!a15004_looping) @@ -69,14 +78,15 @@ unsigned int PicoSVPRead16(unsigned int a, int realsize) } else a15004_looping = 0; - // if (a == 0x30fe02) d = 1; + //if (a == 0x30fe02 && d == 0) + // elprintf(EL_ANOMALY, "SVP lag?"); return d; } void PicoSVPWrite8(unsigned int a, unsigned int d, int realsize) { - elprintf(EL_UIO, "!!! SVP w%i: [%06x], %08x @%06x", realsize, a&0xffffff, d, SekPc); + elprintf(EL_UIO|EL_SVP|EL_ANOMALY, "!!! SVP w%i: [%06x], %08x @%06x", realsize, a&0xffffff, d, SekPc); } void PicoSVPWrite16(unsigned int a, unsigned int d, int realsize) @@ -113,6 +123,6 @@ void PicoSVPWrite16(unsigned int a, unsigned int d, int realsize) CLEAR_DETECT(0x0220b0, 0x0220cc, "SVP RAM CLEAR 300000-31ffbf (2) @ 022096"); clearing_ram = 0; - elprintf(EL_UIO, "SVP w%i: [%06x] %04x @%06x", realsize, a&0xffffff, d, SekPc); + elprintf(EL_SVP, "SVP w%i: [%06x] %04x @%06x", realsize, a&0xffffff, d, SekPc); }