Assume-assemblers directive-microprocessor, Assembly Language

ASSUME: Assume Logical Segment Name:-

The ASSUME directive which is used to inform the assembler, the specified names of the logical segments to be consider for different segments which is used in the program. In the assembly language program, each of thesegment is given a particular name. For instance, the code segment can be given the name CODE; data segment can be allotted the name DATA etc. The statement ASSUME CS: CODE directs the assembler that the machine codes are available in a segment named CODE, and so the CS register is to be loaded having the address (segment) allotted by operating system for the label CODE, while loading. IN the same manner, ASSUME DS : DATA denote to the assembler that the data items related to the program, are available in a logical segment named DATA, and the DS register can be initialised by the segment address value decided by the operating system for the data segment, whereas loading. It then assumed the segment DATA as a default data segment for each memory operation, that is  related to the data and the segment CODE as a source segment for the machine codes of the program. The ASSUME statement is necessary at the starting of each assembly language program, without which a message 'CODE/DATA EMITTED WITHOUT SEGMENT' may be issued by an assembler.

Posted Date: 10/12/2012 5:34:25 AM | Location : United States







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

Write discussion on Assume-assemblers directive-microprocessor
Your posts are moderated
Related Questions
Declare 1 constant. This can be done just below the prototype section. Put the following divider above the constant section. ;************************ Constants ****************

Program Translation Sequence Developing a software program to accomplish a particular task, the implementer chooses an appropriate language, develops the algorithm (a sequence

General Data Registers Given figure indicate the register organization of 8086. The registers DX, CX, BX and AX are the general purpose 16-bit registers. AX is behaved as 16-bi

A good starting point for your program is the toupper.asm program shown in class. It already queries the user for input and sets up a loop that looks at each character of the input

1- Write an assembly program that:   a- Defines an array of 10 (word type)elements;   b- Finds out the number of negative elements   c- Calculate the summation of the posi

I am running a small minecraft server off of my old mac mini, and am having a big issue. My computer isn''t very good, and even just running this server is an issue. I use a comma

Write an application that does the following:(1) fill an array with 50 random integers; (2) loop through the array, displaying each value, and count the number of negative values;

Using the AddSub program from Ch3 under c:\Masm615\examples as a reference, write a program that subtracts three 16-bit integers using only registers. Insert a call DumpRegs statem

(1) Write a program that will: (a) display "Enter Your Name:" (b) convert the entered name to Capital letters (if small), If any other character is entered, the program wil

Example : Write a program to move the contents of the memory location 0500H to BX and also to register CX. Add immediate byte 05H to the data residing in memory location, whose ad