Refactored memory handling to use a generic dispatcher class where different RAM and ROM peaces can be registered.