Assembly language programs-microprocessor, Assembly Language

Assignment Help:

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.

 


Related Discussions:- Assembly language programs-microprocessor

Write a assembly language subroutine, Write a M68000 assembly language subr...

Write a M68000 assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n

Timing diagram of minimum mode, give the explaination of timing diagram min...

give the explaination of timing diagram minimum mode memory write cycle

8086, to separate positive and negative numbers

to separate positive and negative numbers

Need algorithm for multiplication in assemby with out mul, need algorithm f...

need algorithm for multiplication in assembly with out mul function?

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

16f877 7seg display, do you have experts that know 4 digit 7_Seg dispaly

do you have experts that know 4 digit 7_Seg dispaly

Icwi-microprocessor, The definitions of the bits in ICWI are following: ...

The definitions of the bits in ICWI are following: Always set to the value 1. It directs the received byte to ICWI as oppose to OCW2 or OCW3. Which also utilize the even addr

A/D conversions, A/D conversion: Basic tasks: (a) Write a program that wil...

A/D conversion: Basic tasks: (a) Write a program that will read and display the analog voltage on pin PE7 approximately once every second. (b) Write a program that will read and d

Neg-arithmetic intruction-microprocessor, NEG: Negate:- The negate instruc...

NEG: Negate:- The negate instruction forms the 2's complement of the particular destination in the instruction. For obtaining 2's complement, it subtracts the contents of destinat

Opcode-microprocessor, Opcode : The opcode generally appear in the firs...

Opcode : The opcode generally appear in the first byte.but in a few instructions, a register objective is in the first byte and few other instructions may have their 3-bits of

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