public function setCurrentMBC5ROMBank()
{
//Read the cartridge ROM data from RAM memory:
$this->currentROMBank = ($this->ROMBank1offs - 1) * 0x4000;
while ($this->currentROMBank + 0x4000 >= count($this->ROM)) {
$this->currentROMBank -= count($this->ROM);
}
}