Seg-segment-assemblers directive-microprocessor, Assembly Language

SEG : Segment of a Label:-

The SEG operator is which is used to decide the segment address of the, variable, label or procedure and substitutes the segment base address in place of 'SEG label". Following example given below explained the use of SEG operator.

Example :

MOV AX, SEG ARRAY ; This statement moves the segment address of ARRAY in

MOV DS, AX    ; which it is appearing, to register AX and then to DS.

SEGMENT :  Logical Segment:-

The SEGMENT directive marks the beginning of a logical segment. They began segment is also assigned a name, for example label, by this statement. The ENDS and SEGMENT directive ought to bracket each logical segment of a program. In some particular cases, the segment may be assigned a type like PUBLIC (for instance can be used by other modules of the program whereas linking) or GLOBAL (can be accessed by any other modules). The program structure given below described the use of the SEGMENT directive.

EXE.CODE SEGMENT GLOBAL            ; Start of segment named EXE. CODE,

                                                     ; That may be accessed by other module.

EXE.CODE ENDS                               ; END of EXE.CODE logical segment.

 

Posted Date: 10/12/2012 6:09:51 AM | Location : United States







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

Write discussion on Seg-segment-assemblers directive-microprocessor
Your posts are moderated
Related Questions
;StrNCpyAsm - copy zero terminated string2 to zero terminated string1, ; but copy no more than count (parameter) characters ; or the length of string2, whi

How to define procedures?

program to arrange a given set of numbers in descending order

LODS : Load String Byte or String Word:- The LODS instruction loads AL/AX register by the content of a string pointed to by DS:SI register pair. The SI is automatically modifie

EVOLUTION OF MICROPROCESSOR : The digital circuits and systems may be broken into two part: 1) Sequential Circuit and 2) Combinational Circuits     Norm

DEC:  Decrement :- The decrement instruction subtracts 1 from the contents of the particular memory location or register. All the conditions code flags except carry flag are affec

External Hardware-Interrupts External hardware-interrupts are generated by controllers of external devices or coprocessors and are connected to the processor pin for Non Mask a

describes vertical and horizontal web services protocols. Next, identify the similarities and differences between vertical and horizontal web services protocols. Finally, explain w

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

Assembling a program Microsoft Assembler MASM is one of the simple to use and famous assemblers.  All the references and discussions in this section are belonging to the MASM.