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
how to store a bulk data in a external eeprom

how we can multiply two 8 bit number with rotation

errorlevel -302 ;prevents error code for this chipset __config 0x373A ;chip config PIC spec page 146 processor 16F877A ;chipset reset code

Need help with 2 homework assignments

a pseudo-code to add username and password combination up to a limit of 10

Cache components The cache sub-system may be divided into 3 functional blocks: Tag RAM, SRAM and theCache Controller. In real designs, these blocks can be implemented  by multi

Trying to convert small programs from C to 8086 assembly language using emu 8086 emulator. I converted to low level C, but struggling with converting to the Assembly language.

8237 modes : Intel 8237 can be set to four different type of style of transfer: 1) Single - One transfer at a time,  it allow processor access to the bus between transfers

implement the following c++ code in assembly language using the block-structured .IF and .while directives

Write a program to merge two sorted arrays to create a third sorted array containing all values from the two original arrays. Merge is a key component to the mergesort algorithm.