X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FMemoryCmn.c;h=09710beb940fb1905f209f9ee614a2e0ded60b1b;hb=eff55556cff77fd64cff4be32e449e0a58aed6fe;hp=0fbec619fb9c7393a618b3113f3e33a0db1a695c;hpb=721cd3963fa4ba82ca218345e8f543703dc46c90;p=picodrive.git diff --git a/Pico/MemoryCmn.c b/Pico/MemoryCmn.c index 0fbec619..09710beb 100644 --- a/Pico/MemoryCmn.c +++ b/Pico/MemoryCmn.c @@ -1,4 +1,19 @@ -/* common code for Memory.c and cd/Memory.c */ +// common code for Memory.c and cd/Memory.c +// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas + +#ifndef UTYPES_DEFINED +typedef unsigned char u8; +typedef unsigned short u16; +typedef unsigned int u32; +#define UTYPES_DEFINED +#endif + +#ifdef _ASM_MEMORY_C +u32 OtherRead16End(u32 a, int realsize); +#endif +#ifdef _ASM_CD_MEMORY_C +static void OtherWrite8End(u32 a,u32 d,int realsize); +#endif static int PadRead(int i) { @@ -101,7 +116,6 @@ u32 OtherRead16(u32 a, int realsize) #if 1 if (!d) { // needed by buggy Terminator (Sega CD) - extern int z80stopCycle; int stop_before = SekCyclesDone() - z80stopCycle; dprintf("stop before: %i", stop_before); if (stop_before > 0 && stop_before <= 32) // Gens uses 16 here