X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Pico%2Fcarthw%2Fsvp%2Fsvp.c;h=70efa0f98c28c9d3939283768a170aff9834ab5f;hb=d4ca252d929395352f581b532e9d3726da31d718;hp=a196fa1c1a48218852ee9d007d4e3cc140e0ee06;hpb=50483b5330e31812fc75f397ae639f6ab03f7978;p=picodrive.git diff --git a/Pico/carthw/svp/svp.c b/Pico/carthw/svp/svp.c index a196fa1..70efa0f 100644 --- a/Pico/carthw/svp/svp.c +++ b/Pico/carthw/svp/svp.c @@ -1,3 +1,11 @@ +// 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" svp_t *svp = NULL; @@ -26,7 +34,8 @@ static void PicoSVPLine(int count) static int PicoSVPDma(unsigned int source, int len, unsigned short **srcp, unsigned short **limitp) { - if (source < Pico.romsize) { // Rom + if (source < Pico.romsize) // Rom + { source -= 2; *srcp = (unsigned short *)(Pico.rom + (source&~1)); *limitp = (unsigned short *)(Pico.rom + Pico.romsize);