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
The Pentium Pro    Introduced in the year 1995, the Pentium Pro reflected  still  more  design  breakthroughs.  The Pentium Pro may process 3 instructions in a single clock cy

SHL/SAL : Shift logical/Arithmetic Left: These instructions shift the operand byte or word bit by bit to the left and insert 0 in the newly introduced least significant bits. In c

1) Write an 80x86 assembly language program in EXE file format to do the following tasks: a) Open and read the contents of a file into memory (use at least 1 kB). b) Sort the li

Pin diagram of 8088 : The pin diagram of 8088 is shown in given figure. Most of the 8088 pins and their functions are exactly similar to the corresponding pins of 8086.  Hence

Write a program on the assembly language to do the following: 1- Allocate array with 32bit 100 element 2- Prompt the user to enter the maximum or the upper bound of the rando

Part A: Bitwise Logical and Shift Operations Create a SPARC assembly language program that extracts a bit-field from the contents of register %l0. The position of the rightmos

2. Write a program to separate out positive and negative numbers from a given series of 16-bit hexadecimal numbers.

wap proram for bthe addition of two 3*3 matrix

PC Bus and Interrupt System The PC Bus utilized a bus controller, address latches, and data transceivers (bidirectional data buffers). 1) Bus controller : ( Intel 8288 Bus

define accounting.briefly explain the accounting concepts which guide the accountant at the recording stage.