X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=boards%2Fmmc3.h;fp=boards%2Fmmc3.h;h=e2c71497a4a344f286fb6660c36917e0d29c034e;hp=0000000000000000000000000000000000000000;hb=d97315ac0bca825d2d50a44453bc5652946e2c67;hpb=890e37ba2b8ea1c7593dc05926d7431e3bd00bfb diff --git a/boards/mmc3.h b/boards/mmc3.h new file mode 100644 index 0000000..e2c7149 --- /dev/null +++ b/boards/mmc3.h @@ -0,0 +1,22 @@ +extern uint8 MMC3_cmd; +extern uint8 *WRAM; +//extern uint8 *CHRRAM; +extern uint8 EXPREGS[8]; +#undef IRQCount +#undef IRQLatch +#undef IRQa +extern uint8 IRQCount,IRQLatch,IRQa; +extern uint8 IRQReload; + +extern void (*pwrap)(uint32 A, uint8 V); +extern void (*cwrap)(uint32 A, uint8 V); +extern void (*mwrap)(uint8 V); + +void GenMMC3Power(void); +void MMC3RegReset(void); +void FixMMC3PRG(int V); +void FixMMC3CHR(int V); +DECLFW(MMC3_CMDWrite); +DECLFW(MMC3_IRQWrite); + +void GenMMC3_Init(CartInfo *info, int prg, int chr, int wram, int battery);