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.
I’m writing a subroutine in MIPS assembly language to convert ASCII into UTF-16 and
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Pseudocode, assuming that your bytes are octets and that no zero termination is required:
Conversion from ASCII to UTF-16
MOVZX. You may also pay attention to the correct endianness.Lossless conversion from UTF-16 to ASCII