PadhaikoAll subjects

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

Microprocessors · 4 marks

Open in the Padhaiko app

Topic: Assembly Language Programming, Syntax & Directives

Question

Explain different assembler directives used in assembly language programming.

Solution

1. Data Definition Directives: These directives allocate memory and initialize variables with initial values:

2. Segment Organization Directives: Define logical segment boundaries and segment register associations:

3. Value Assignment & Procedure Directives:

Answer:

Assembler directives include data allocation directives (DB, DW, DD, DUP), segment control directives (SEGMENT/ENDS, ASSUME, .MODEL, .DATA, .CODE), and procedure/symbol directives (EQU, ORG, PROC/ENDP, END).

All past exam questions for Microprocessors