Machine Code & Assembly Language Flashcards

All 5 cards in this deck

True or false? Machine code must be translated before a computer can run it.

False. Machine code does not need to be translated / compiled / interpreted — the processor executes it directly.

How many machine code instructions does one assembly language instruction correspond to, compared with one high-level statement?

One assembly language instruction corresponds to exactly one machine code instruction (a 1:1 correspondence). One high-level statement usually stands for many machine code instructions.

What is machine code?

Instructions written in binary that the processor executes directly. Each type of processor has its own instruction set, so machine code is specific to a processor or family of processors.

What is assembly language?

A low-level language that uses short text mnemonics (e.g. ADD, LDR) in place of binary machine code instructions. It is often used for embedded systems and for controlling specific hardware.

How can you tell machine code, assembly language and high-level code apart?

Machine code is binary (0s and 1s); assembly language uses mnemonics such as ADD with operands; high-level code uses English-like statements such as IF and WHILE.