Assembly language programs-microprocessor, Assembly Language

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 language program into a computer and coding it, for example preparing an EXE file from the source code. In this section, we will discuss about some programs which clarify the use of instructions, directives &some other facilities that are available in assembly language programming. After discussion of these programs, it is expected that one should have a clear idea regarding the use of different pseudo-ops and directives, their syntaxes as well under-standing the logic of each program. If someone writes an assembly language program and tries to code it, in the primary attempt, the chances are rare that it will be error free. Errors in programming depend upon the ability of the Programmer. A lot of practice is required to get skills in assembly language programming as comparison to high level languages. So, to get a command on assembly language one should write and execute a number of assembly programs, in addition studying the example programs given in this text.

Before starting the clarification of the written programs, we have to give details one more significant point, that is about the DOS function calls available under INT 21H instruction. DOS is an operating system (OS), which is a program that stands amongst bare computer system hardware and a user. It acts as a user interface that contains the available computer hardware resources. Also, it manages the hardware resources of the computer system. In the Disk OS, the hardware resources of the computer system like keyboard, memory, hard disk, CRT display and floppy disk drives can be handled with the help of the INT 21H instruction. The routines needed to refer to these resources are written as interrupt service routines for 21H interrupt. Under  this  interrupt, the  particular  resource is selected depending on the value  in register AH. For instance, if AH contains 09H, then CRT display is to be utilized for displaying a message or if, AH register contain OAH, then the keyboard is to be accessed. These interrupts are called 'function calls' and the value that they contain in AH is called 'functions value'. In short, the reason of 'function calls' under INT 21 His to be determined by the 'function value' that is in AH. Some function values also manage the software operations of the machine. The  list  of  the  function  values  available under INT 21 H, their equivalent functions, the needed parameters and the returns are given in tabulated form in the Appendix-B. Make a note of that there are a number of interrupt functions in the DOS, but INT 21H is used more commonly. The readers can find other interrupts of BIOS and DOS from the respective technical references.

 

Posted Date: 10/12/2012 7:35:05 AM | Location : United States







Related Discussions:- Assembly language programs-microprocessor, Assignment Help, Ask Question on Assembly language programs-microprocessor, Get Answer, Expert's Help, Assembly language programs-microprocessor Discussions

Write discussion on Assembly language programs-microprocessor
Your posts are moderated
Related Questions
take an integer and its base and the base in which you want to convert the number from user and perform conversion.

Intel 8259 interrupt controller :  The 8088 processor has only two interrupt control inputs, and interrupt request (INTR) and non mask able interrupt (NMI). NMI are interrupts t

Program :  Write an assembly program to find out the largest number from a given unordered array of 8-bit numbers that stored in the locations starting from a known address. S

Write Policy A write policy determines how the cache deals with a write cycle. The 2 common write policies areWrite-Throughand Write-Back. In Write-Back policy, the cache behav

Data copy/transfer Instructions MOV: This data transfer instruction transfers data from one register or memory location to another register or memory location. The source can

You have been hired by the Elbonian government to write an Assembly program to help its workforce determine how much their tax will be. The tax laws in Elbonian are very simple. Th

I need to estimate the value of a definite integral using Riemann Sums and For our estimation let f(x) = x2 ,a=0, b=10 and n=5. Where a is the lower bound, b is the upper bound and

1. The microwave has a clock (hh:mm:ss am/pm) and the user should be able to change the clock at any time. 2. For cooking the user should first enter the time. The user can ente

1. Write a program that calculates the Fibonacci series: 1, 1, 2, 3, 5, 8, 13, ….. (Except for the first two numbers in the sequence, each number is the sum of the preceding two n

The processor 8088 The launching of the processor 8086 is consider as a remarkable step in the development of high speed computing machines. Before the introduction  of 8086 mo