parent
52f43889b3
commit
44d89dfcc5
|
@ -162,16 +162,12 @@ void GFX_FIFOsend(u8 cmd, u32 param)
|
|||
if (gxFIFO.tail > 256)
|
||||
gxFIFO.tail = 256;
|
||||
|
||||
// TODO: irq handle
|
||||
//gxstat |= 0x08000000; // set busy flag
|
||||
gxstat |= (gxFIFO.tail << 16);
|
||||
|
||||
#ifdef USE_GEOMETRY_FIFO_EMULATION
|
||||
// TODO irq21
|
||||
gxstat |= 0x02000000; // this is hack (must be removed later)
|
||||
//if (gxFIFO.tail < 128)
|
||||
// gxstat |= 0x02000000;
|
||||
#else
|
||||
if (gxFIFO.tail < 128)
|
||||
gxstat |= 0x02000000;
|
||||
|
||||
#ifndef USE_GEOMETRY_FIFO_EMULATION
|
||||
gxstat |= 0x02000000; // this is hack (must be removed later)
|
||||
#endif
|
||||
|
||||
|
@ -181,6 +177,10 @@ void GFX_FIFOsend(u8 cmd, u32 param)
|
|||
BOOL GFX_FIFOrecv(u8 *cmd, u32 *param)
|
||||
{
|
||||
u32 gxstat = T1ReadLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600);
|
||||
if (gxstat & 0xC0000000)
|
||||
{
|
||||
setIF(0, (1<<21));
|
||||
}
|
||||
gxstat &= 0xF000FFFF;
|
||||
if (gxFIFO.tail == 0) // empty
|
||||
{
|
||||
|
|
|
@ -2420,14 +2420,7 @@ void NDS_exec(s32 nb)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef USE_GEOMETRY_FIFO_EMULATION
|
||||
// todo: hack - remove later
|
||||
if(MMU.reg_IE[ARMCPU_ARM9]&(1<<21))
|
||||
{
|
||||
NDS_makeARM9Int(21); // GX geometry
|
||||
//INFO("IRQ21\n");
|
||||
}
|
||||
#else
|
||||
#ifndef USE_GEOMETRY_FIFO_EMULATION
|
||||
if(MMU.reg_IE[ARMCPU_ARM9]&(1<<21))
|
||||
NDS_makeARM9Int(21); // GX geometry
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue