Hi all.
I'm developing an emulator as my free time, and I'm new at this forum.
So, when the code issues a sprite dma transfer, they are copied from RAM space do SPR RAM space. This copy is only limited from RAM to SPR RAM space, or it can copy from VROM?
I'm asking this, because a game trashes SPR RAM reading from a crazy memory addr
my code looks like this:
// DMA transfer OAM data
void oam_dma(byte n)
{
int i;
for(i=0;i<256;i++)
oam[i]=mem_read(n*0x100+i);
}
where mem_read is a macro, it read from memory pages. ( page[addr>>13][addr] )
thanks
I'm developing an emulator as my free time, and I'm new at this forum.
So, when the code issues a sprite dma transfer, they are copied from RAM space do SPR RAM space. This copy is only limited from RAM to SPR RAM space, or it can copy from VROM?
I'm asking this, because a game trashes SPR RAM reading from a crazy memory addr
my code looks like this:
// DMA transfer OAM data
void oam_dma(byte n)
{
int i;
for(i=0;i<256;i++)
oam[i]=mem_read(n*0x100+i);
}
where mem_read is a macro, it read from memory pages. ( page[addr>>13][addr] )
thanks