Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Assembly Expert

Programming with an assembler

The procedure of hand-coding 8086 programs is somewhat tiresome; hence generally a programmer may find it hard to get a correct listing of the machine codes. Additionally the procedure of it is time consuming. This programming procedure is called as machine level programming. The clear disadvantages of machine level programming are as given:

1. The process is complex and time consuming.

2. The chances of error being committed are more at the machine level in hand-coding and entering the program byte-by-byte into the system.

3. Debugging a program at the machine level is harder.

4. The programs are not understood by everybody and the results are not stored in a user-friendly form.

A program which is called 'Assembler' is used to convert the mnemonics of instructions along with the data into their corresponding object code modules. Further these object code modules may be converted in executable code by using the linker and loader programs. This type of programming is known assembly level programming. In assembly language programming, directly the mnemonics are used in the user programs. Assembler performs the task of coding.

The Advantages of assembly language over the machine language are as given:

1.) The programming in assembly language is not as complicated as in machine language because the function of coding is performed by an assembler.

2.) The chances of being error are less because the mnemonics are used instead of numerical opcodes. It is not hard to enter an assembly language program.

3.) As the mnemonics are purpose-suggestive the debugging is simpler.

4.) The address and constants locations may be labeled with suggestive labels hence imparting friendlier interface to user. Advanced assemblers provide services like, lists, marmoset. Making the task of programming is much easier.

5.) The memory control is in the hands of users as in machine language.

6.) The results may be stored in a more user-friendly form.

7.) The flexibility of programming is more in assembly language programming as compared to machine language because of the advanced facilities available with the modern assemblers.

Basically, the assembler is a program that converts an assembly input file also known as source file to an object file that further can be converted into machine codes or an executable file by using a linker. The fresh versions of the assembler are designed with many facilities like numerical processor assemblers, macro assemblers, and functions procedures and so on.

As this is concerned, we will consider the assembly language programming by using Microsoft Macro Assembler (MASM). There are a number of assemblers available like TASM, MASM and DOS assembler. MASM is one of the famous assemblers which are used along with a LINK program to structure the codes generated by MASM in the form of an executable file. The MASM reads source program as its input and provides an object file. The LINK accepts the object file generated by MASM as input and generates an EXE file.

Whereas writing a program, for an assembler, your first step shall be to use a text editor and type the program listing prepared by you. Then examine the listing typed by you for any syntax error and typing mistake. Before you quit the editor program, don't forget to save it. Once you save the text file with any name (permissible on operating system), you are free to begin the assembly process. A number of text editors exist in the market, for example Turbo C [TC], Norton's editor [NE], EDLIN, etc. Throughout from this book, the NE is used. Any other free form editor can be used for a better user-friendly environment. Therefore for writing a program in assembly language, one will required NE editor, MASM assembler, and linker and DEBUG usefulness of DOS. In the following section, the procedures of opening a file for a program, assembling, executing and checking its result are explained for beginners.

 

Assembly, Programming

  • Category:- Assembly
  • Reference No.:- M9511172

Have any Question?


Related Questions in Assembly

Question a sequence string of one-byte ascii characters is

Question : A sequence (string) of one-byte ASCII characters is stored at memory location $600 onward. A second sequence of equal length is stored at memory location $700 onward. Each sequence ends with the character $0 ( ...

Really need to find a correct answer to this questionwrite

Really need to find a correct answer to this question: Write a MIPS assembly program that can search for a number that is entered by a user in an array with 20 integer number. Make sure it also prints the index of the ar ...

Task 1using masm sdk write an assembly language program

TASK 1 Using MASM SDK, write an assembly language program which converts an integer inputted via the console to binary. Your program should be well commented and well formatted. TASK 2 Using MASM SDK, write an assembly l ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As