Skip to main content
Engineering LibreTexts

4: Translating Assembly Language into Machine Code

  • Page ID
    27119
  • Learning Objectives

    1. two of the three formats for MIPS instructions.
    2. what op codes and functions are for MIPS operations
    3. how to format Immediate (I) and Register (R) instructions in machine code.
    4. how to represent MIPS instructions in hexadecimal.
    5. how to use MARS to check your translations from assembly language to machine code.

    Everything in a computer is a binary value. Numbers are binary, characters are binary, and even the instructions to run a program are binary. Therefore the assembly language that has been presented cannot be what the computer understands. This assembly code must be converted to binary values. These binary values are called machine code. This chapter will explain how to convert the assembly instructions that have been covered so far into machine code.

    • Was this article helpful?