2006-07-29 05:46:15 +00:00
|
|
|
void FCEUPPU_Init(void);
|
|
|
|
void FCEUPPU_Reset(void);
|
|
|
|
void FCEUPPU_Power(void);
|
|
|
|
int FCEUPPU_Loop(int skip);
|
|
|
|
|
|
|
|
void FCEUPPU_LineUpdate();
|
|
|
|
void FCEUPPU_SetVideoSystem(int w);
|
|
|
|
|
2008-06-06 03:02:00 +00:00
|
|
|
extern void (*PPU_hook)(uint32 A);
|
2006-07-29 05:46:15 +00:00
|
|
|
extern void (*GameHBIRQHook)(void), (*GameHBIRQHook2)(void);
|
|
|
|
|
|
|
|
/* For cart.c and banksw.h, mostly */
|
|
|
|
extern uint8 NTARAM[0x800],*vnapage[4];
|
|
|
|
extern uint8 PPUNTARAM;
|
|
|
|
extern uint8 PPUCHRRAM;
|
|
|
|
|
|
|
|
void FCEUPPU_SaveState(void);
|
|
|
|
void FCEUPPU_LoadState(int version);
|
2008-08-08 09:45:34 +00:00
|
|
|
uint8* FCEUPPU_GetCHR(uint32 vadr, uint32 refreshaddr);
|
2009-12-08 05:54:21 +00:00
|
|
|
void ppu_getScroll(int &xpos, int &ypos);
|
|
|
|
|
2006-07-29 05:46:15 +00:00
|
|
|
|
2009-08-06 00:51:29 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define FASTCALL __fastcall
|
|
|
|
#else
|
|
|
|
#define FASTCALL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void PPU_ResetHooks();
|
|
|
|
extern uint8 (FASTCALL *FFCEUX_PPURead)(uint32 A);
|
2008-08-21 14:54:48 +00:00
|
|
|
extern void (*FFCEUX_PPUWrite)(uint32 A, uint8 V);
|
2009-08-11 06:15:06 +00:00
|
|
|
extern uint8 FASTCALL FFCEUX_PPURead_Default(uint32 A);
|
|
|
|
void FFCEUX_PPUWrite_Default(uint32 A, uint8 V);
|
2008-08-21 14:54:48 +00:00
|
|
|
|
2006-07-29 05:46:15 +00:00
|
|
|
extern int scanline;
|
2008-08-24 00:04:09 +00:00
|
|
|
extern uint8 PPU[4];
|
|
|
|
|
|
|
|
enum PPUPHASE {
|
|
|
|
PPUPHASE_VBL, PPUPHASE_BG, PPUPHASE_OBJ
|
|
|
|
};
|
|
|
|
|
2009-10-19 03:37:38 +00:00
|
|
|
extern PPUPHASE ppuphase;
|