The NES had 32K addressable RAM...while some behemoths like Castlevania 3 (http://en.wikipedia.org/wiki/Castlevania_III:_Dracula%27s_Cu...) had 256K of program code to fit in that little box. Every game company solved this problem differently, it seems: http://wiki.nesdev.com/w/index.php/Mapper
The 8/16-bit consoles could only address 64k, which was to be used for program, data, VRAM and memory-mapped I/O. So you were forced to partition your code and data in 8k or 16k banks and manually swap them in and out. If bank 1 was swapped in, there was no way to access bank 2...