mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
psp memhandlers, vsync, stuff
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@289 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
88b3d7c16a
commit
3ec29f016c
16 changed files with 836 additions and 40 deletions
|
@ -168,7 +168,7 @@ static
|
|||
#endif
|
||||
void OtherWrite8(u32 a,u32 d)
|
||||
{
|
||||
#ifndef _ASM_MEMORY_C
|
||||
#if !defined(_ASM_MEMORY_C) || defined(_ASM_MEMORY_C_AMIPS)
|
||||
if ((a&0xe700f9)==0xc00011||(a&0xff7ff9)==0xa07f11) { if(PicoOpt&2) SN76496Write(d); return; } // PSG Sound
|
||||
if ((a&0xff4000)==0xa00000) { if(!(Pico.m.z80Run&1)) Pico.zram[a&0x1fff]=(u8)d; return; } // Z80 ram
|
||||
if ((a&0xff6000)==0xa04000) { if(PicoOpt&1) emustatus|=YM2612Write(a&3, d)&1; return; } // FM Sound
|
||||
|
@ -180,7 +180,7 @@ void OtherWrite8(u32 a,u32 d)
|
|||
if(!(d&1)) z80_reset();
|
||||
return;
|
||||
}
|
||||
#ifndef _ASM_MEMORY_C
|
||||
#if !defined(_ASM_MEMORY_C) || defined(_ASM_MEMORY_C_AMIPS)
|
||||
if ((a&0xff7f00)==0xa06000) // Z80 BANK register
|
||||
{
|
||||
Pico.m.z80_bank68k>>=1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue