Fix bug in half-word copier in assembler function