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
Queue Operation :   RQ/CT0, RQ/G1-Request/Grant:   These pins are utilized by other local bus masters, in themaximum mode, to force the processor to release the loca


I am assigned to implement dijkstra algorithm in assembly language. I am not a novice in assembly. I need help implementing it.Kindly if anyone then please.

DMA controller :     Steps include in transferring a block of data from I/O devices (for example a disk) to memory: 1. CPU sends a signal to initiate disk transfe

String Manipulation Instruction A series of words or data bytes are available in memory at consecutive locations, to be mention to individually or collectively, are known as by

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

Architecture Of 8088 The register set of 8088 is accurately the same as in to 8086. The architecture of 8088 is also same to 8086 except for 2 changes; a) 8088 has 4-byte instr

Program :  Write an assembly program to find out the largest number from a given unordered array of 8-bit numbers that stored in the locations starting from a known address. S

Assembly Code for Reading Flow & Generating Serial Output The timer is timer 1 is set for the baud rate 9600, as the crystal used is of 11.0592 Hz.  Then the timer 1 is starte

init_lcd                        ;(this initialises a 2 row lcd)     bcf     TRISA,0             ;PORTA bit 0 as an output (lcd RS pin)     bcf     TRISA,1             ;PORTA bit 1