Relationship Between Machine Code and Assembly Code
Relationship Between Machine Code and Assembly Code
code
- You could say that assembly code is one level above machine
code.
- Assembly code uses mnemonics to represent machine code
instructions.
- Each assembly code instruction corresponds to one machine
code instruction (one-to-one mapping).
- This differs from source code, which has one-to-many
mapping with machine code.
- An assembler is used to translate assembly code into machine
code
- Assembly language is closely tied to the processor’s
instruction set
- Different processors (e.g. desktop vs raspberry PI) require
different assemblers.