SQUASH/write_reg_contents_ex