Refactoring of memory-mapped IO to reduce code duplication
Added message to assert statement for number base(radix) verification