optimizations, fixes, hacks, psp, ...

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@295 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2007-11-15 23:01:20 +00:00
parent 8022f53da6
commit b542be4686
37 changed files with 928 additions and 548 deletions

View file

@ -13,6 +13,10 @@
#include <string.h>
#include "cz80.h"
#if PICODRIVE_HACKS
#include <Pico/PicoInt.h>
#endif
#ifndef ALIGN_DATA
#define ALIGN_DATA __attribute__((aligned(4)))
#endif
@ -203,6 +207,13 @@ void Cz80_Reset(cz80_struc *CPU)
Cz80_Set_Reg(CPU, CZ80_PC, 0);
}
/* */
#if PICODRIVE_HACKS
static inline unsigned char picodrive_read(unsigned short a)
{
return (a < 0x4000) ? Pico.zram[a&0x1fff] : z80_read(a);
}
#endif
/*--------------------------------------------------------
CPUŽÀ<EFBFBD>s