Understand that assembly language uses mnemonics and requires an assembler
Types of Programming Languages
🧩 What are programming languages? They are sets of rules that let us tell a computer what to do. Think of them as different ways to give instructions, just like speaking different human languages.
High‑Level Languages
High‑level languages are designed to be easy for humans to read and write. They hide the computer’s hardware details and let you focus on solving problems. Examples include:
- Python 🐍 – great for beginners and quick scripts.
- Java ☕ – used for large applications and Android apps.
- JavaScript 🌐 – powers interactive web pages.
- C# 🎮 – popular for game development with Unity.
Low‑Level Languages
Low‑level languages are closer to the computer’s hardware. They give you more control but are harder to read. They are usually split into two categories:
- Assembly Language – uses mnemonics to represent machine instructions.
- Machine Code – binary numbers that the CPU executes directly.
Assembly Language in Detail
Assembly language is like a very detailed instruction manual for the CPU. Each line is a mnemonic that tells the processor to do something, such as move data or add numbers. For example:
| Mnemonic | What It Does |
|---|---|
| MOV | Move data from one place to another. |
| ADD | Add two values. |
| JMP | Jump to another part of the program. |
⚙️ Why do we need an assembler? The assembler translates these mnemonics into the binary machine code that the CPU can understand. Without it, the computer would have to read the human‑readable instructions directly, which it cannot do.
Analogy: Assembly as a Translator
Think of the CPU as someone who only speaks binary. High‑level languages are like English or Spanish – easy to read but not understood by the CPU. Assembly is a translator that converts your English sentences into the binary words the CPU can process. The assembler is the translator’s tool that does the conversion.
📚 Exam Tip: When you see a question about assembly language, remember:
- It uses mnemonics like MOV, ADD, JMP.
- It requires an assembler to translate to machine code.
- It is a low‑level language, closer to the hardware.
Quick Math Check (LaTeX)
To practice reading formulas, here’s a simple one: $x = y + z$. In assembly, you might write ADD to perform this addition.
Revision
Log in to practice.