X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fmisc.c;h=ba24f95f8822976bfcdece3f103d6ac44ec814d6;hb=d3bbc8d2cbb5fcc61e9f4e282effd0f2777a5cc3;hp=4e344fc5a37d91e20a9c775630e75c6121a43927;hpb=45f2f245f51ef0c0d37df3c998595c132bfcaffa;p=picodrive.git diff --git a/pico/misc.c b/pico/misc.c index 4e344fc..ba24f95 100644 --- a/pico/misc.c +++ b/pico/misc.c @@ -1,10 +1,10 @@ -// This is part of Pico Library - -// (c) Copyright 2006 notaz, All rights reserved. -// Free for non-commercial use. - -// For commercial use, separate licencing terms must be obtained. - +/* + * rarely used EEPROM code + * (C) notaz, 2006-2008 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include "pico_int.h" @@ -99,9 +99,9 @@ typedef struct int b7; } intblock; -PICO_INTERNAL_ASM void memcpy16(unsigned short *dest, unsigned short *src, int count) +PICO_INTERNAL_ASM void pmemcpy16(unsigned short *dest, unsigned short *src, int count) { - if ((((int)dest | (int)src) & 3) == 0) + if ((((long)dest | (long)src) & 3) == 0) { if (count >= 32) { memcpy32((int *)dest, (int *)src, count/2);