Logo Search packages:      
Sourcecode: fceux version File versions  Download package

cart.cpp File Reference


Detailed Description

This file contains all code for coordinating the mapping in of the address space external to the NES.

Definition in file cart.cpp.

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include "types.h"
#include "fceu.h"
#include "ppu.h"
#include "driver.h"
#include "cart.h"
#include "x6502.h"
#include "file.h"
#include "utils/memory.h"

Go to the source code of this file.

Functions

void CloseGenie (void)
static DECLFR (GenieFix3)
static DECLFR (GenieFix2)
static DECLFR (GenieFix1)
static DECLFR (GenieRead)
 DECLFR (CartBROB)
 DECLFR (CartBR)
static DECLFW (GenieWrite)
 DECLFW (CartBW)
void FCEU_ClearGameSave (CartInfo *LocalHWInfo)
void FCEU_KillGenie (void)
void FCEU_LoadGameSave (CartInfo *LocalHWInfo)
void FCEU_SaveGameSave (CartInfo *LocalHWInfo)
void FixGenieMap (void)
void GeniePower (void)
void OpenGenie (void)
void ResetCartMapping (void)
void setchr1 (unsigned int A, unsigned int V)
void setchr1r (int r, unsigned int A, unsigned int V)
void setchr2 (unsigned int A, unsigned int V)
void setchr2r (int r, unsigned int A, unsigned int V)
void setchr4 (unsigned int A, unsigned int V)
void setchr4r (int r, unsigned int A, unsigned int V)
void setchr8 (unsigned int V)
void setchr8r (int r, unsigned int V)
void setmirror (int t)
void setmirrorw (int a, int b, int c, int d)
void setntamem (uint8 *p, int ram, uint32 b)
static INLINE void setpageptr (int s, uint32 A, uint8 *p, int ram)
void setprg16 (uint32 A, uint32 V)
void setprg16r (int r, unsigned int A, unsigned int V)
void setprg2 (uint32 A, uint32 V)
void setprg2r (int r, unsigned int A, unsigned int V)
void setprg32 (uint32 A, uint32 V)
void setprg32r (int r, unsigned int A, unsigned int V)
void setprg4 (uint32 A, uint32 V)
void setprg4r (int r, unsigned int A, unsigned int V)
void setprg8 (uint32 A, uint32 V)
void setprg8r (int r, unsigned int A, unsigned int V)
void SetupCartCHRMapping (int chip, uint8 *p, uint32 size, int ram)
void SetupCartMirroring (int m, int hard, uint8 *extra)
void SetupCartPRGMapping (int chip, uint8 *p, uint32 size, int ram)
void setvram4 (uint32 A, uint8 *p)
void setvram8 (uint8 *p)
void setvramb1 (uint8 *p, uint32 A, uint32 b)
void setvramb2 (uint8 *p, uint32 A, uint32 b)
void setvramb4 (uint8 *p, uint32 A, uint32 b)
void setvramb8 (uint8 *p, uint32 b)

Variables

uint32 CHRmask1 [32]
uint32 CHRmask2 [32]
uint32 CHRmask4 [32]
uint32 CHRmask8 [32]
uint8 * CHRptr [32]
static int CHRram [32]
uint32 CHRsize [32]
int disableBatteryLoading = 0
uint32 genieaddr [3]
static readfunc GenieBackup [3]
uint8 geniech [3]
static uint8 * GENIEROM = 0
int geniestage = 0
uint8 genieval [3]
static int mirrorhard = 0
uint8 * MMC5BGVPage [8]
uint8 * MMC5SPRVPage [8]
int modcon
static uint8 nothing [8192]
uint8 * Page [32]
static uint8 PRGIsRAM [32]
uint32 PRGmask16 [32]
uint32 PRGmask2 [32]
uint32 PRGmask32 [32]
uint32 PRGmask4 [32]
uint32 PRGmask8 [32]
uint8 * PRGptr [32]
static int PRGram [32]
uint32 PRGsize [32]
uint8 * VPage [8]
uint8 * VPageG [8]
uint8 ** VPageR = VPage


Generated by  Doxygen 1.6.0   Back to index