That is assembly languages differ from computer to

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ly language program starts at address 1000 and we suddenly find that we have another program to be used with this program and this program also starts at location 1000. Obviously, one of the two programs will have to be rewritten to be moved to somewhere else. In machine language, this can be a complicated job. But in case of assembly language, we merely have to suitably change the pseudo-instructions for assembling the program for one of the two programs. For example, we change the following pseudo-instructions for one of the programs: to the following pseudo-instructions: START PROGRAM AT 1000 START DATA AT 2000 START PROGRAM AT 3000 START DATA AT 4000 and run the assembly language program once again through the assembler. The equivalent machine language program will this time start at memory location 3000 instead of 1000, and there will be no conflict with the other program. In other words, assembly language programs can be easily moved from one section of the memory to another. 6. Efficiency of machine language. In addition to the above mentioned advantages, an assembly language program also enjoys the efficiency of its corresponding machine language program because there is one-to-one correspondence between the instructions of an assembly language program and its corresponding machine language program. In other words, an assembly language program will be just as long as the resulting machine language program. So leaving out the translation time required by the assembler, the actual execution time for an assembly language program and its equivalent machine language program (written independently) will be the same. Limitations of Assembly Language The following limitations of machine language are not solved by using assembly language: 1. Machine dependent. Because each instruction of an assembly language program is translated into exactly one machine language instruction, assembly language programs are machine dependent. That is, assembly languages differ from computer to computer and an assembly language program can be executed only...
View Full Document

This document was uploaded on 04/07/2014.

Ask a homework question - tutors are online