I'm writing a subroutine in MIPS assembly language to convert ASCII into UTF-16 and vice versa. However, I could not find any trick how to convert it.
Pseudocode, assuming that your bytes are octets and that no zero termination is required:
MOVZX
. You may also pay attention to the correct endianness.