Entering a program-microprocessor, Assembly Language

Assignment Help:

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


Related Discussions:- Entering a program-microprocessor

Program on virtual learning environment, Task One Produce a menu such a...

Task One Produce a menu such as the one below (remember to keep to this specification). M E N U 1, Enter Number 1 2, Enter Number 2 3, Display num1 and num2 4, D

Program translation sequence, Program Translation Sequence Developing ...

Program Translation Sequence Developing a software program to accomplish a particular task, the implementer chooses an appropriate language, develops the algorithm (a sequence

Al registre, check the al-register for palindromic number

check the al-register for palindromic number

Generating random number using 8086, I need to generate a random number bby...

I need to generate a random number bby using 8086 assembly language

Computes the integral square root - assembly program, Computes the integral...

Computes the integral square root: Problem: Square Root:   For this problem you will write a short assembly program that computes the integral square root of an input numb

Instructions, Difference between div and idiv

Difference between div and idiv

Shl, Assume that the registers are initialized to EAX=12345h,EBX =9528h EC...

Assume that the registers are initialized to EAX=12345h,EBX =9528h ECX=1275h,EDX=3001h sub AH,AH sub DH,DH mov DL,AL mov CL,3 shl DX,CL shl AX,1 add DX,AX

Arithmetic instruction-microprocessor , Arithmetic Instruction :           ...

Arithmetic Instruction :               These instructions are usually perform the arithmetic operations, like subtraction ,multiplication, addition, and division along with th

Label-assemblers directive-microprocessor, LABEL :   The Label directive...

LABEL :   The Label directive which is used to assign a name to the current content of the location counter. At the beginning of the assembly process, the assembler start a loca

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