src/memory/mappers/sxrom.cc
/*
 * Deletes the calling Sxrom object.
 */
Deletes the calling Sxrom object.
Deletes the calling Sxrom object .
Sxrom::~Sxrom(void) {
  delete[] ram_;
  for (size_t i = 0; i < num_prg_rom_banks_; i++) { delete[] prg_rom_[i]; }
  for (size_t i = 0; i < num_prg_ram_banks_; i++) { delete[] prg_ram_[i]; }
  delete[] nametable_bank_a_;
  delete[] nametable_bank_b_;
  for (size_t i = 0; i < num_chr_banks_; i++) { delete[] pattern_table_[i]; }
  return;
}
Sxrom :: ~ Sxrom ( void ) { delete [ ] ram_ ; for ( size_t i = 0 ; i < num_prg_rom_banks_ ; i ++ ) { delete [ ] prg_rom_ [ i ] ; } for ( size_t i = 0 ; i < num_prg_ram_banks_ ; i ++ ) { delete [ ] prg_ram_ [ i ] ; } delete [ ] nametable_bank_a_ ; delete [ ] nametable_bank_b_ ; for ( size_t i = 0 ; i < num_chr_banks_ ; i ++ ) { delete [ ] pattern_table_ [ i ] ; } return ; }
Deletes the calling Sxrom object.
Deletes the calling Sxrom object .
// Free the CPU memory array. // Free the cartridge rom and ram. // Free the nametables. // Free the CHR data.