Explore tens of thousands of sets crafted by our community.
Assembler Directives
15
Flashcards
0/15
SECTION Directive
Used to define a section in the assembly code, typically .data, .text, or .bss for data, code, and uninitialized data respectively.
GLOBAL Directive
Declares a symbol that can be accessed from other modules, making it global rather than local to the assembly file.
EXTERN Directive
Tells the assembler that the defined symbol is located in another module and not to expect its definition within the current module.
DB Directive
Defines a byte or string of bytes and initializes them with values.
DW Directive
Defines a word (typically 2 bytes) and initializes it with a value.
DD Directive
Defines a double word (typically 4 bytes) and initializes it with a value.
DQ Directive
Defines a quad word (typically 8 bytes) and initializes it with a value.
DT Directive
Defines a ten-byte space and usually initializes it with a floating-point number.
EQU Directive
Used to define a symbol as a constant value, not to be allocated any memory space.
END Directive
Defines the end of the source code file, indicating to the assembler that it has reached the end of the file.
ORG Directive
Sets the origin, or starting address, for the code or data that follows the directive.
ALIGN Directive
Aligns the next data item on a boundary, which can improve access speed on many systems.
BYTE Directive
Allocates space for a byte or a sequence of bytes in the memory and optionally initializes them.
WORD Directive
Allocates memory space for a word or a sequence of words and optionally initializes them.
RESB Directive
Reserves space for a block of bytes in the BSS section, typically without initialization.
© Hypatia.Tech. 2024 All rights reserved.