Entering a program-microprocessor, Assembly Language

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 already  described for hand coding. The similar program is written along with some syntax modifications in it for MASM.

Before beginning the process, make sure that all the files namely NE.COM (Norton's Editor, LINK.EXE (linker), MASM.EXE (Assembler), DEBUG.EXE (debugger) are available in the similar directory in which you are working. Start the procedure with the given command after you boot the terminal and enter the directory containing all the files mentioned.

C> NE

You will get display on the screen as in given figure.

Now type the file name. It will be displayed on the screen. Assume one types KMB.ASM as file name, the screen display will be as display as in given Figure.

1798_nortons editor.jpg

Press any of the keys, you will get following figure as the screen display.

2343_nortons editor2.jpg

Make a note of that, for every assembly language program, the extension .ASM ought to be there though every time the assembler does not use the entire name KMB.ASM and uses only KMB to handle the file, the extension indicate that it is an assembly language program file.  Even if you enter a file name without using the .ASM extension, the assembler searches for the file name but with .ASM extension and if it is not available, it gives the message 'File not found'. Once you get the display as in above Figure. You are free to type the program. One can use another type of command line as given.

C> NE KMB.ASM

The above command will give the display as in shown in above Figure directly, if KMB.ASM is a newly opened file. Or else, if KMB.ASM already present in the directory, then it will be opened and  then the program in it will be displayed. You can change it and save (command F3-E) it again, if you want the changes to be enduring. Or else, simply quit (command F3-Q) it to abandon the changes and exit NE. The entered program in NE looks similar to in given Figure. We have to just assume that it is an assembly language program to be assembled and Store it with command F3-E. It will produce a new copy of the program in the secondary storage. Then stop the NE with command F3-Q.

Once the above process is finished, you can now turn towards the assembling of the above program. Note that all of the commands and displays shown in this section are for Norton's Editor. Other editors may need some other commands and their display style may be rather different but the overall procedure is the similar.

Note that before quitting the editor program the newly entered or modified file ought to be saved, or else it will be lost and will not be available for further assembling procedure.

2498_nortons editor3.jpg

Posted Date: 10/12/2012 7:03:59 AM | Location : United States







Related Discussions:- Entering a program-microprocessor, Assignment Help, Ask Question on Entering a program-microprocessor, Get Answer, Expert's Help, Entering a program-microprocessor Discussions

Write discussion on Entering a program-microprocessor
Your posts are moderated
Related Questions
;StrNCpyAsm - copy zero terminated string2 to zero terminated string1, ; but copy no more than count (parameter) characters ; or the length of string2, whi

program to arrange a given set of numbers in descending order

Port Mapped I/O or I/O Mapped I/O I/O devices are mapped into a separate address space. This is generally accomplished by having a different set of signal lines to denote a mem

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

Assembly Language Example Programs We studied the entire instruction set of 8086/88, pseudo-ops and assembler directives. We have explained the process of entering an assembly

ADC: Add with Carry:- This instruction performs the similar operation a like ADD instruction, but adds the carry flag bit (which might be set as a result of the previous calculatio

DEC : A powerful new Alpha 64 bit RISC computer chip was introduced in the year 1977, as new VAX (Virtual Address Extension) Computer. The VAX was 32 bit computer line based on

Write the structure of For…Next loop in VB.Net and also write a program to print integers from 1 to 10 on the console.

what is the hex value in ax after executing the instructions ax= 1E8A bx=4080 add al,bl sub ah,bh

Read Architecture : Look Aside Cache In "look aside" cache architecture the main memory is located conflictingthe system interface. Both the cache main memory sees a bus cycle