End-endp-assemblers directive-microprocessor, Assembly Language

Assignment Help:

END : END of Program:-

The END directive marks the ending of the assembly language program. When the assembler comes across this END directive, it avoided the source lines available later on. Hence, it should be confirm that the END statement should be the final statement in the file and should not seem in between. Also, after the END statement no useful program statement should lie in the file,.

ENDP : END of Procedure:-

In the assembly language programming, the subroutines are called by the name procedures. Thus, procedures may be independent program modules which return specific results or values to the calling programs. The ENDP directive, which is used for denote the end of a procedure. A procedure is generally assigned a name, for instance Label. To mark the end of a program code. The recurring value is assigned having a label, and that label which is used in place of that numerical value, all through the program. at the same time as assembling, whenever the assembler  comes  across  the  label, it substitutes the numerical value for that label and  finds  out  the equivalent code. By Using the EQU directive, even an instruction mnemonic may be assigned with a label, and the label may then be used in the program in place of that mnemonic. Assume, a numerical constant appears in a program ten times. If that constant is to be changed in later time, one will have to make all these 10 corrections. This can lead to human errors, because it is a chance that a human programmer can miss one of those corrections. This will result in the generation of wrong codes. If the EQU directive is used to assign the value with a label that may be used in place of each recurrence of that constant, just 1 change in the EQU statement will give the proper and modified code. The examples which are given below show the syntax.

Example :        

LABEL        EQU   050   0H

ADDITION  EQU   ADD    

The first statement assigns the constant 500H having the label LABEL, whereas the second statement assigns another labelADDITION having mnemonic ADD.  EXTRN:  External  and PUBLIC: Public The directive EXTRN informs the assembler that the names,labels andprocedures  declared after this directive already have been defined in some other assembly language modules.  In the other module where the names labels and procedures really appear, they ought to be declared public, by using the PUBLIC directive. If anyone wants to call a procedure FACTORIAL that appearing in MODULEI from MODULE 2; in MODULE 1, it ought to be declared PUBLIC by using the statement PUBLIC FACTORIAL and in module 2, it ought to be declared external by using the declaration EXTRN FACTORIAL.The statement ofdeclaration EXTRN oughtto be accompanied by the SEGMENT and ENDS directives of the MODULE 1, before it is called in the MODULE 2. Thus the MODULEI and MODULE 2 must have the following declarations.

2099_ENDP.jpg


Related Discussions:- End-endp-assemblers directive-microprocessor

Name-offset-assemblers directive-microprocessor, NAME : Logical Name of...

NAME : Logical Name of a Module: The NAME directive which is used to assign a name to an assembly language program module. The modulecan now be mention to by its declared name.

Program, Write an application that does the following: (1) fill an array wi...

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;

8251 programmable/communication interface-microprocessor, 8251 Programmable...

8251 Programmable/Communication Interface As an instance of a serial interface device let us suppose Intel's 8251 A programmable communication interfaces. The 8251A is diagram

Compute the fibonacci sequence - assembly program, Compute the Fibonacci se...

Compute the Fibonacci sequence - assembly program: Problem: Fibonacci   In this problem you will write a program that will compute the first 20 numbers in the Fibonacci sequ

Movsw/movsb-string manipulation instruction-microprocessor, MOVSW/MOVSB : ...

MOVSW/MOVSB : Move String Word or String Byte: Imagine a string of bytes, stored in a set  of consecutive memory locations is to be moved to another set of  the destination locati

Modes of 8255 a-microprocessor, The modes are determined by the contents of...

The modes are determined by the contents of the control register, whose format is given in Figure These modes are: Mode 0: If a group is in mode 0, it is divided into 2 sets.

Cbw-cwd-arithmetic instruction-microprocessor, CBW: Convert Signed Byte to...

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

Queue operation-microprocessor, Queue Operation :   RQ/CT0, RQ...

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

Write a program that will input a number from the keyboard, Write a program...

Write a program that will input a number from the keyboard, and then display the number in binary form, as well as the number of one's in the number. Hint: Shift the value left (or

8088 timing system diagram-Microprocessor, 8088  Timing System Diagram ...

8088  Timing System Diagram The 8088 address/data  bus is divided  in 3 parts (a) the lower 8 address/data  bits, (b) the middle 8 address bits, and (c) the upper 4 status/

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd