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
Conditional branch Instruction When these type of instructions are executed, they transfer control of execution to the address mention relatively in the instruction, provided t

segmentation and overlapping in assemble language

given a sentence, find the number of times a particular character or word appear. the sentence is to be entered by the user

how to add 111 and 333 in assembly language

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

Intel's 8237 DMA controller : 1) The 8237 contain 4 independent I/O channels 2) It contains 27 registers, 7 of which are system-wide registers and 5 for each channel. 3)

Why is the capability to relocate processes desirable?

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

I need a text conversion program written in assembly language

Write Policy A write policy determines how the cache deals with a write cycle. The 2 common write policies areWrite-Throughand Write-Back. In Write-Back policy, the cache behav