memory and register controller