mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-10-27 21:48:50 +01:00
more wip SVP code
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@318 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f53f286a8b
commit
f8ef8ff710
13 changed files with 399 additions and 24 deletions
|
|
@ -317,7 +317,6 @@ static void OtherWrite8End(u32 a,u32 d,int realsize)
|
|||
Pico.m.prot_bytes[(a>>2)&1] = (u8)d;
|
||||
}
|
||||
|
||||
|
||||
#include "MemoryCmn.c"
|
||||
|
||||
|
||||
|
|
@ -498,15 +497,26 @@ static void PicoWrite32(u32 a,u32 d)
|
|||
// -----------------------------------------------------------------
|
||||
|
||||
// TODO: asm code
|
||||
u32 (*PicoRead16Hook)(u32 a, int realsize) = OtherRead16End;
|
||||
void (*PicoWrite8Hook)(u32 a, u32 d, int realsize) = OtherWrite8End;
|
||||
static void OtherWrite16End(u32 a,u32 d,int realsize)
|
||||
{
|
||||
PicoWrite8Hook(a, d>>8, realsize);
|
||||
PicoWrite8Hook(a+1,d&0xff, realsize);
|
||||
}
|
||||
|
||||
PICO_INTERNAL void PicoMemSetup(void)
|
||||
u32 (*PicoRead16Hook) (u32 a, int realsize) = OtherRead16End;
|
||||
void (*PicoWrite8Hook) (u32 a, u32 d, int realsize) = OtherWrite8End;
|
||||
void (*PicoWrite16Hook)(u32 a, u32 d, int realsize) = OtherWrite16End;
|
||||
|
||||
PICO_INTERNAL void PicoMemResetHooks(void)
|
||||
{
|
||||
// default unmapped/cart specific handlers
|
||||
PicoRead16Hook = OtherRead16End;
|
||||
PicoWrite8Hook = OtherWrite8End;
|
||||
PicoWrite16Hook = OtherWrite16End;
|
||||
}
|
||||
|
||||
PICO_INTERNAL void PicoMemSetup(void)
|
||||
{
|
||||
// Setup memory callbacks:
|
||||
#ifdef EMU_C68K
|
||||
PicoCpuCM68k.checkpc=PicoCheckPc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue