notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
svp minor adjustments, copyright
[picodrive.git]
/
Pico
/
carthw
/
svp
/
svp.c
diff --git
a/Pico/carthw/svp/svp.c
b/Pico/carthw/svp/svp.c
index
a196fa1
..
70efa0f
100644
(file)
--- 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;
#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)
{
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);
source -= 2;
*srcp = (unsigned short *)(Pico.rom + (source&~1));
*limitp = (unsigned short *)(Pico.rom + Pico.romsize);