How to Convert Lowercase to Uppercase in MIPS Assembly Code

By Suman Medda

There are two current implementations of the MIPS assembly code.
i Jupiterimages/Photos.com/Getty Images

The MIPS, or Microprocessor without Interlocked Pipeline Stages, assembly code was developed by MIPS Computer Systems. There are six major implementations of the code. The two current implementations are MIPS32 and MIPS64, which support 32-bit and 64-bit operating instructions, respectively. MIPS uses a two-character alphanumeric codes to represent different letters and characters such as operands. Unfortunately, there is not a simple command to change letters from lowercase to uppercase. Each letter must be changed manually.

Open the MIPS code file.

Locate the code containing the lowercase letters. The letters "a" through "i" are represented by the numbers 61 to 69. The letters "j" through "o" are represented by 6A to 6F. The letters "p" through "y" are represented by 70 to 79. The letter z is represented by 7A.

Subtract 20 from the representations of the letters "a" through "i" and "p" through "y." For example, lowercase "a" is 61, and uppercase "A" is 41. Lowercase "p" is 70, while uppercase "P" is 50. Change the first number for the representations of "j" through "o" from 6 to 4. For example, "j" is 6A, while "J" is 4A. Change "z" from 7A to 5A to get "Z."

×