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
write a program using assembly language that print your name

Physical Memory Mapped I/O and Port I/O : CPU controlled I/O comes in 2 ways. Simply the difference is whether we utilize the normal memory addresses for I/O, this is mention

Write a procedure to read a text file and copy its contents to another text file using 8086 assembly language .

Interrupt Table Each interrupt level has a booked memory location, called an interrupt vector.  All these vectors (or pointers) are stored in the interrupt table. Table lies at

AAD stand for what??

Machine Level Programs In this section, a few machine levels programming instance, rather then, instruction sequences are presented for comparing the 8086 programming with that

ADC: Add with Carry:- This instruction performs the similar operation a like ADD instruction, but adds the carry flag bit (which might be set as a result of the previous calculatio

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.

IInd Generation Microprocessor : The second generation microprocessor by using n MOS technology seemed in the market in 1973.   The Intel  8080, of nMOS  technology