understanding register layout