Refactor 8-register RAM