PadhaikoAll subjects

Past exam question: 2082 Chaitra (Regular), Q6(a)

Microprocessors · 1 marks

Open in the Padhaiko app

Topic: Assembly Language Programming, Syntax & Directives

Question

What are directives in assembly language programming?

Solution

Definition of Assembler Directives: Assembler directives (also known as pseudo-ops or pseudo-instructions) are directions given directly to the assembler program (such as MASM, TASM, or NASM) during source code compilation, rather than commands executed by the CPU. They do not generate machine language object code; instead, they control segment organization, allocate and initialize memory for variables, define constants, and specify macro or procedure boundaries.

Answer:

Directives are commands to the assembler during assembly time that manage memory allocation, segment structure, and symbols without generating executable CPU machine code.

All past exam questions for Microprocessors