Technique · engine
PRG bank switching
Swapping which bank of program ROM the CPU sees in part of its address space, so a cartridge can hold more code and data than the CPU can address at once.
Bank switching lets a cartridge hold more program than the CPU can address. A mapper chip on the cartridge decides which bank fills a window of the address space, and the game writes to the mapper to change it. CHR bank switching does the same for the tiles the video chip reads.