OneLoneCoder / olcNES

NES Emulator, and Tutorial Video Code
1.36k stars 229 forks source link

Emulator can't load roms larger than 40kb #22

Open ghost opened 5 years ago

ghost commented 5 years ago

Emulator simply crashes without any clue

TediusTimmy commented 5 years ago

That they are greater than 40k implies that they are not using iNES mapper 0, which is the only one he has pushed code for.

The ImageValid function should be returning false, and his example OnUserCreate functions then return false. I don't know why it crashes, but I do know that it shouldn't even try to run such a ROM.

SirGouki commented 3 years ago

Theoretically, with proper bank switching, a ROM could be any size in multiples of the limit of the memory the NES could access from the ROM. You'd only load the bank that the switcher points to at once. Realistically, you'd be limited by the amount of power that such a board could draw from the NES without burning it up, and the size of the board you'd be placing these chips on.