/* static DECLFR(A2004) { uint8 ret; FCEUPPU_LineUpdate(); ret = SPRAM[PPU[3]]; if(PPUSPL>=8) { if(PPU[3]>=8) ret = SPRAM[PPU[3]]; } else { //printf("$%02x:$%02x\n",PPUSPL,V); ret = SPRAM[PPUSPL]; } PPU[3]++; PPUSPL++; PPUGenLatch = ret; printf("%d, %02x\n",scanline,ret); return(ret); } */ static DECLFR(A2007) { uint8 ret; uint32 tmp=RefreshAddr&0x3FFF; FCEUPPU_LineUpdate(); ret=VRAMBuffer; if(!fceuindbg) { if(PPU_hook) PPU_hook(tmp); PPUGenLatch=VRAMBuffer; if(tmp<0x2000) { VRAMBuffer=VPage[tmp>>10][tmp]; } else {
static DECLFR(A2007) { uint8 ret; uint32 tmp=RefreshAddr&0x3FFF; FCEUPPU_LineUpdate(); ret=VRAMBuffer; #ifdef FCEUDEF_DEBUGGER if(!fceuindbg) #endif { if(PPU_hook) PPU_hook(tmp); PPUGenLatch=VRAMBuffer; if(tmp<0x2000) VRAMBuffer=VPage[tmp>>10][tmp]; else VRAMBuffer=vnapage[(tmp>>10)&0x3][tmp&0x3FF]; }