Moved memory exception
Added registers to simulator
Added cache functionality