mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
vdp rendering, fix for CD (sprites from WORD RAM)
This commit is contained in:
parent
82b3e6cf3c
commit
bd73e6eec0
3 changed files with 35 additions and 35 deletions
|
@ -849,6 +849,24 @@ void ym2612_unpack_state(void);
|
|||
|
||||
|
||||
// videoport.c
|
||||
extern unsigned SATaddr, SATmask;
|
||||
static __inline void UpdateSAT(u32 a, u32 d)
|
||||
{
|
||||
unsigned num = (a-SATaddr) >> 3;
|
||||
|
||||
Pico.est.rendstatus |= PDRAW_DIRTY_SPRITES;
|
||||
if (!(a & 4) && num < 128) {
|
||||
((u16 *)&VdpSATCache[num])[(a&3) >> 1] = d;
|
||||
}
|
||||
}
|
||||
static __inline void VideoWriteVRAM(u32 a, u16 d)
|
||||
{
|
||||
PicoMem.vram [(u16)a >> 1] = d;
|
||||
|
||||
if (!((u16)(a^SATaddr) & SATmask))
|
||||
UpdateSAT(a, d);
|
||||
}
|
||||
|
||||
PICO_INTERNAL_ASM void PicoVideoWrite(unsigned int a,unsigned short d);
|
||||
PICO_INTERNAL_ASM unsigned int PicoVideoRead(unsigned int a);
|
||||
unsigned char PicoVideoRead8DataH(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue