Org-proc-assemblers directive-microprocessor, Assembly Language

ORG : Origin:-

The ORG directive directs the assembler to begin the memory allotment for the specific segment, code or block from the declared  address in the ORG  statement. Whereasstarting the assembly process for a module, the assembler initialises a location counter to keep track of the allotted addresses for the module. If the ORG statement is not written in program, the location counter is initialised to 0000. If an ORG 200H statement is there at the beginning of the code segment of that module, then the code will begin from 200H address in code segment. In other term, the location counter willinitialise to the address 0200H instead of 0000H. Therefore, the code for different segments andmodules may be located in the available memory as required by the programmer. The ORG directive can even be utilized with data segments in similar way.

PROC: Procedure:-

The PROG directive marks the start of a named process in the statement. The types NEAR or FAR mention the type of the procedure, for example. Whether it is to be called by the main program located within 64K of physical memory or not. For instance, the statement RESULT PROC NEAR marks the start of a routine RESULT that is to be called by a program located in the similar segment of memory. The FAR directive which is used for the procedures to be called by the programs located in different segments of memory. The example statements are following:

Example :

RESULT    PROC    NEAR ROUTINE PROC            FAR

 

Posted Date: 10/12/2012 5:58:04 AM | Location : United States







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

Write discussion on Org-proc-assemblers directive-microprocessor
Your posts are moderated
Related Questions
Modes of 8254 :   Mode 0 (Interrupt on Terminal Count)-GATE which value is 1 enables counting and GATE  which value is 0 disables counting, and GATE put not effect on


Entering a Program In this section, we will explain the procedure for entering a small program on IBM PC with DOS operating system. Assume a program of addition of 2 bytes, as

Motorola 68000 Series : 68000microprocessor is a 16 bit processor that has addressing space of 65536 locations, each of which holds a 64-bits word; In order to address those lo

Basic Microprocessor Architecture and Interface : Introduction: Intel launches its first 4-bit microprocessor 4004 in the year 1971 and 8-bit microprocessor 8008 in the y

Any small project which can implement on any software. No need any external hardware approach.

Cache controller The cache controller is the mind of the cache.  Its responsibilities include:  performing the  snarfs and snoops, updating the  TRAM  and SRAM and implementing

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

Interrupt Priority Management The interrupt priority management logic indicated in given figure can be implemented in several ways. It does not required to be present in system

MyLocation SDWORD 14 TheTest        SDWORD 8     mov    eax,MyLocation     mov    ebx,TheTest     neg     eax,ebx     sub     eax,ebx Show exactly what lives in eax after executi