Programming with an assembler-microprocessor, Assembly Language

Assignment Help:

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.

 


Related Discussions:- Programming with an assembler-microprocessor

Div-idiv-arithmetic instruction-microprocessor, DIV: Unsigned Division:- T...

DIV: Unsigned Division:- This instruction performs unsigned division operation. It divides an unsigned word or double word by a 16-bit or 8-bit operand. The dividend might be in t

Pointer and index registers-microprocessor, Pointer and Index Registers ...

Pointer and Index Registers The pointers contain offset within the specific segments. The pointers BP, IP and SP generally containoffsets within thedata, code and stack segment

External system bus architecture-microprocessor, External System Bus Archit...

External System Bus Architecture : This is a 16 bit processor with 40 pins. It has twenty address pins and out of which sixteen are utilized as data pins. This concept of by us

Quarters, There are two parts to this assignment. The first part has you r...

There are two parts to this assignment. The first part has you reading 4 integers representing; #QUARTERS, #DIMES, #NICKELS & #PENNIES, respectively. Your program should compute t

Assembly Language Programming, Write a program that defines symbolic consta...

Write a program that defines symbolic constants for all of the days of the week

Dma controller-microprocessor, DMA controller :     Steps in...

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

Average of odd numbers, write an assembly language program to find average ...

write an assembly language program to find average of odd numbers from an array of 8 bit numbers

Power pc-microprocessor, Power Pc : A Power PC is a microprocessor des...

Power Pc : A Power PC is a microprocessor designed to meet a standard, which was combining designed by Motorola, Apple and IBM. The PowerPC standard specifies a common instruc

Schematic circuit diagram of system, Perform an extensive web search of pop...

Perform an extensive web search of popular microcontroller manufacturers (some of the major players) to select a suitable device for the system to control the lighting of a typical

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