Professional Documents
Culture Documents
Application Programs
a top layer of general computer, which provide us Application programs like Text Editors, Games ,GUI etc. Which is framed generally using High level languages.
DOS BIOS Hardware
DOS Functions
BIOS Services
Hardware
7/29/12
PC compatiblecomputers, thebasic input/output system also known as theSystem BIOSorROMBIOS. hardware , load and start an operating system. devices such as card,keyboardandmouse,hard otherhardware. up.
The primary function of the BIOS is to set up the The BIOS is to initialize and identify system
thedisplay disk,
software
is
stored
7/29/12
on
anon-
BIOS Interrupts
While using computer, we frequently need input
and output functions for reading, Displaying, accessing data in disk etc.
All these functions are predefined by computer
manufacturer and made available in the system ROM with other BIOS functions. FE000H to FFFFFH.
They are stored in system ROM in locations The programmer can make use of all this
already existing large number of BIOS services for accessing I/O devices rather than writing procedures again in his programs 7/29/12
This category are used to control text and graphics on the PCs display screen.(INT 10h)
System Services,
This category are used to obtain the encoded list of the standard hardware equipments connected to computer. (INT 11h)
Disk I/O Services,
This are used to perform I/O operations on disk drives. (INT 13h)
RS 232 Serial I/O services,
7/29/12
Initialize the parallel printer port, control output to a printer and read the printers status. (INT 17h)
Date/Time services,
These functions are used to read or set the time maintained by BIOS. (INT 1Ah)
Miscellaneous services,
of theDOS family of operating systems, and was the main operating system forIBM PC x86-basedpersonal computers.
operating system that could run on any 8086family computer. Each computer would have its own distinct hardware and its own version of MSDOS.
Today, MS-DOS is rarely used for desktop
computing. Since the release ofWindows 95, it was integrated as a full product used forbootstrappingand troubleshooting, and no 7/29/12 longer released as a standalone product.
DOS Interrupts
Like wise BIOS, DOS as number of routines which a
formatting disk, creating disk files, reading or writing files, reading from key board and writing on to display etc. BIOS .But DOS intern use large number of BIOS to provide these desired services. program using INT 21H instruction.
DOS allows the programmer to use these services in his Programs written in DOS is generally portable. But computer
system should have DOS operating system for the program Portable. Thorough knowledge of the I/O devices is not necessary while writing programs.
00H
FUNCTION
Sets the video display mode Invoked with : register AH=00h register AL=mode number CODE SEGMENT START: MOV AH,00H MOV AL,00H ;00H(TEXT, 16 GRAY COLOURS,40X25)
7/29/12 ;01H(TEXT ,40X25)
Obtains the ASCII code for the character at the current cursor position. Invoked with : Register AH=09H number(optional) : Register BH=Video page : Register BL=Attribute byte characters CODE SEGMENT
7/29/12
: Register CX=Number of
Display character at the standard output device Invoked with : Register Ah=02H Register DL=ASCII Code Returns : Nothing
Reads character without echoing it on the standard output of device Invoked with : Register Ah=07H Returns Code : Register AL=Character ASCII
CODE SEGMENT START: MOV AH,07H ;READS CHARACTER WITH OUT 7/29/12
GET
DATE
Obtains the month ,year ,day and day of the week as maintained by DOS Invoked with : Register Ah=2AH Returns : Register AL=day of the week (0 Sunday) : Register CX=year : Register DH=month : Register DL=day
CODE SEGMENT
7/29/12
GET
TIME
Obtains the time(hh,mm,ss,ss/100) Invoked with : Register Ah=2cH Returns : Register CH=HH (0 through 23) : Register CL=MM(0 through 59) : Register DH=SS(0 through 59) : Register DL=SS/100
7/29/12