Lines Matching refs:RAM
1403 //Main RAM, MBC RAM, GBC Main RAM, VRAM, etc.
1410 this.MBCRam = []; //Switchable RAM (Used by games for more RAM) for the main memory range 0xA000 - 0xC000.
1412 this.GBCMemory = []; //GBC main RAM Banks
1414 this.MBCRAMBanksEnabled = false; //MBC RAM Access Control.
1415 this.currMBCRAMBank = 0; //MBC Currently Indexed RAM Bank
1418 this.gbcRamBank = 1; //Currently Switched GameBoy Color ram bank
1419 this.gbcRamBankPosition = -0xD000; //GBC RAM offset from address start.
1420 this.gbcRamBankPositionECHO = -0xF000; //GBC RAM (ECHO mirroring) offset from address start.
1421 this.RAMBanks = [0, 1, 2, 4, 16]; //Used to map the RAM banks to maximum size the MBC used can do.
1547 this.cSRAM = false; //Does the cartridge use save RAM?
1561 this.numRAMBanks = 0; //How many RAM banks were actually allocated?
5273 //Return the MBC RAM for backup...
5283 //Return the MBC RAM for backup...
5759 //Initialize the RAM:
6176 // ROM and RAM banks
6181 cout("No RAM banking requested for allocation or MBC is of type 2.", 0);
6184 cout("1 RAM bank requested for allocation.", 0);
6187 cout("4 RAM banks requested for allocation.", 0);
6190 cout("16 RAM banks requested for allocation.", 0);
6193 cout("RAM bank amount requested is unknown, will use maximum allowed by specified MBC type.", 0);
6224 this.setupRAM(); //CPU/(V)RAM initialization.
6230 this.setupRAM(); //CPU/(V)RAM initialization.
6277 //Setup the auxilliary/switchable RAM:
6292 //For ROM and unknown MBC cartridges using the external RAM:
6295 //Switched RAM Used
6305 cout("Actual bytes of MBC RAM allocated: " + (this.numRAMBanks * 0x2000), 0);
6307 //Setup the RAM for GBC mode.
8820 //MBC3 RTC + RAM:
9118 //Switchable RAM
9122 //cout("Reading from disabled RAM.", 1);
9126 //Switchable RAM
9152 //cout("Reading from disabled RAM.", 1);
9156 //Switchable RAM
9181 //cout("Reading from invalid or disabled RAM.", 1);
9216 //Read the cartridge ROM data from RAM memory:
9230 //Read the cartridge ROM data from RAM memory:
9235 //Read the cartridge ROM data from RAM memory:
9341 //MBC3 RTC + RAM:
9369 if (this.cGBC) { //Only GBC has access to this RAM.
9385 //MBC RAM Bank Enable/Disable:
9394 //MBC1 RAM bank switching
9431 //MBC3 RAM bank switching
9460 //MBC5 RAM bank switching
9465 //MBC5 RAM bank switching
9471 //HuC3 RAM bank switching
9476 //We might have encountered illegal RAM writing or such, so just do nothing...
9539 if (parentObj.modeSTAT < 2) { //OAM RAM cannot be written to in mode 2 & 3
10122 //WAVE PCM RAM:
10413 var addressCheck = (parentObj.memory[0xFF51] << 8) | parentObj.memory[0xFF52]; //Cannot change the RAM bank while WRAM is the source of a running HDMA.
10426 //Fill in the GameBoy Color I/O registers as normal RAM for GameBoy compatibility:
10699 false, //Override MBC RAM disabling and always allow reading and writing to the banks.