![]() When the above code is compiled and executed, it produces the following result −Īllocating Storage Space for Uninitialized Data Global _start must be declared for linker (gcc) The following program shows the use of define directive − Short and long floating-point numbers are represented using 32 or 64 bits, respectively. Negative numbers are converted to its 2's complement representation. Processor uses the little-endian byte ordering. There are five basic forms of the define directive − Directiveįollowing are some examples of using define directives −Įach byte of character is stored as its ASCII value in hexadecimal.Įach decimal value is automatically converted to its 16-bit binary equivalent and stored as a hexadecimal number. The assembler associates an offset value for each variable name defined in the data segment. Where, variable-name is the identifier for each storage space. The syntax for storage allocation statement for initialized data is − Allocating Storage Space for Initialized Data It can be used to reserve as well as initialize one or more bytes. ![]() The define assembler directive is used for allocation of storage space. NASM provides various define directives for reserving storage space for variables. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |