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
Problem (a) Prepare the assembly code sequence for each of the four styles (accumulator, memory-memory, stack, load/store) of machine for the code fragment: A = B + C;

I need a division subroutine. Asks for two inputs, then displays the inputs and shows the answer with a remainder. Mine isnt displaying the inputs correctly.


Memory Interface                                                                  Figure: Memory Modulation design The memory of a computer contain of number of memo

How to define procedures?

I was wondering if you guys could offer me some advice and help on how to proceed - not answers- for a homework problem I am attempting. I am currently working on a "bomb" project

CBW: Convert Signed Byte to Word: This instruction converts a signed byte to a signed word. In other terms, it copies the sign bit of a byte to be converted to all of the bits in

Ask question #MinimuWHAT ARE CONSTANTS AND WHAT DO THEY DO?m 100 words accepted#

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

Signal descriptions of 8086 : described below are common for the maximum andminimum mode bothdata lines AD15 -AD0: These are the time multiplexed andmemory I/O address. Addre