It's true the NES has 2 KiB built-in RAM, but a cartridge can provide its own RAM. Some of the later cartridges (MMC5 for example) supported up to 128 KiB of extended RAM. There's not really any limit to how far you could push that with a custom mapper.
mikepurvis|2 years ago
https://magpi.raspberrypi.com/articles/reverse-emulated-nes