Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
INT 21H supports about 100 different functions. A function is recognised by putting the function number in AH register. For illustration if we want to call function number 01 then we place this value in AH register first by employing MOV instruction and after that call INT 21H:
Some significant DOS function calls are:
DOS
Function Call
Purpose
Example
AH = 01H
For reading a single character from keyboardand echo it on monitor. The input value is put inAL register.
To get one character input in a variable in data segment you may include the following in the code segment:
MOV AH,01
INT 21H
MOV X, AL
(Please note that interrupt call will return value in AL which is being transferred to variable of data segment X. X must be byte type).
AH = 02H
This function prints 8 bit data (normally ASCII) that is stored in DL register on the screen.
To print a character let say '?' on the screen we may have to use following set of commands:
MOV AH, 02H;
MOV DL, '?'
AH = 08H
This is an input function for inputting one character. This is same as AH = 01H functions with the only difference that value does not get displayed on the screen.
Same example as 01 can be used only difference in this case would be that theinput character wouldn't get displayed
MOV AH, 08H
AH = 09H
This program outputs a string whose offset is stored in DX register and that is terminated using a $ character. One can print newline, tab character also.
To print a string "hello world" followed by a carriage return (control character) we may have to use the following assembly program segment.
Example of
CR EQU ODH
; ASCII code of carriage return.
DATA SEGMENT
STRING DB 'HELLO WORLD', CR, '$'
DATA ENDS
CODE SEGMENT
:
MOV AX, DATA
MOV DS, AX
MOV AH, 09H
MOV DX, OFFSET STRING
; Store the offset of string in DX register.
AH = 0AH
For input of string up to 255 characters. The stringis stored in a buffer.
Look in the examples given.
AH = 4CH
Return to DOS
The devices on the I2C bus are either masters or slaves. The master is the device that is responsible for driving the SCL clock line, while the slaves are the devices that respond
Associative Array Processing Consider that a list of record or a table is stored in the memory and you want to search some information in that list. For example, the list havin
A three stage network is realized by using switching matrices of size p x s in stage 1, r x r matrices in stage 2 and s x p matrices in stage 3. Using the Lee's probability graph s
Design a generalization-specialization hierarchy for a motor vehicle sales company. The company sells motorcyles,passenger cars,vans,and buses.justify your placement of attributes
The alpha beta company generates two products; A and B, that are made from components C and D. Given the following product structures, master scheduling requirements and inventory
Q. Major problems associated in writing with cache memories? The data in main and cache memory can be written by processors or I/O devices. The major problems associated in wri
Subscript refers to the array of occurrence, whereas Index shown an occurrence of a table element. An index can only modified using perform, search & set. Require to have an index
Q. What is Gate? Explain Basic gates with truth table and necessary circuits. Q. Which gates are called Universal Gates? Why? Q. Give the Dual of the rule 17. Q. Realize
What are the Kernel threads Kernel threads are supported directly by the operating system .Thread creation; scheduling and management are done by the operating system. Thus the
Sir,wish to receive guidance from you how to join in Aeronautical Engineering after Bsc Computer Science. I am a Girl.Interested to work in AE field, it will be better to use in co
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!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd