implement 8-Register Memory