commanderx16 / x16-emulator

Emulator for the Commander X16 8-bit computer
383 stars 60 forks source link

Make emulator support RAM increments of 8K #461

Closed JimmyDansbo closed 1 year ago

JimmyDansbo commented 1 year ago

As things were, it was not possible to start the emulator with, for example, 1536KB of memory which would be possible to have in hardware. This change makes it possible to use any multiple of 8K for the amount of RAM

indigodarkwolf commented 1 year ago

Simple enough change, but I'm going to suggest that, since it's changing to accept any multiple of 8KB, we don't need the for-loop anymore to search for valid values. Just compare (kb & 7) == 0. If true, we have a multiple of 8. If false, we do not.

indigodarkwolf commented 1 year ago

Awesome. Works for me.