Name-offset-assemblers directive-microprocessor, Assembly Language

NAME :

Logical Name of a Module: The NAME directive which is used to assign a name to an assembly language program module. The modulecan now be mention to by its declared name. The names, if chosen to be suggestive, may be point out the functions of the different modules and hence can help in the documentation.

OFFSET : Offset of a Label:

When the assembler comes across the OFFSET operator with a label, firstly it computes the 16-bit displacement (it is also called as offset interchangeably) of the specific label, and replaces the 'OFFSET LABEL' string by the computed displacement. This operator is used with, strings, arrays, labels and procedures to decide their offsets in their default segments. The segment may be decided by another operator of same type, which is, SEG. Its most general use is in the case of the indirect, indexed, based indexed or other addressing techniques of similar types, used to indirectly refers  to the memory. The instance of this operator is as follows:

Example :

CODE  SEGMENT

MOV SI,  OFFSET LIST

 CODE ENDS

DATA SEGMENT

LIST DB IOH DATA ENDS

 

Posted Date: 10/12/2012 5:55:09 AM | Location : United States







Related Discussions:- Name-offset-assemblers directive-microprocessor, Assignment Help, Ask Question on Name-offset-assemblers directive-microprocessor, Get Answer, Expert's Help, Name-offset-assemblers directive-microprocessor Discussions

Write discussion on Name-offset-assemblers directive-microprocessor
Your posts are moderated
Related Questions
Motorola 68000 Series : 68000microprocessor is a 16 bit processor that has addressing space of 65536 locations, each of which holds a 64-bits word; In order to address those lo

Write an account of your findings and produce a report containing all aspects of the above. Include a step-by-step 'simple User Guide' so that your program can be operated as inten

Description Write a MIPS program that reads a string from user input, reverse each word (defined as a sequence of English alphabetic letters or numeric digits without any punctu


Write an 8086 program to find out the number of positive numbers and negative numbers from a given series of signed numbers include flow chart ..

DMA DMA stands for Direct Memory Access It is uses same Address/Data lines on ISA bus It controls the ISA bus instead of the processor ("bus master") Floppy

how we can multiply two 8 bit number with rotation

Please let me know if you can do an assignment in the next 12 hours

LENGTH : Byte Length of a Label: This directive is not available in MASM. This is used to mention to the length of a data array or a string. MOV CX. LENGTH ARRAY This sta

Write an assembly program that adds the elements in the odd indices of the following array. Use LOOP. What is the final value in the register?