buppu3 / tnCart

FPGA cartridge for MSX
BSD 3-Clause "New" or "Revised" License
28 stars 6 forks source link

tncrom: allow loading less than 16K roms #19

Closed herraa1 closed 1 month ago

herraa1 commented 1 month ago

TNCROM errors out with a "file read error" when loading a ROM of less than 16K because it always tries to fill a bank with 16K data. The proposed fix makes sure that no more than the available ROM data is transferred into a bank.