DOS API: Difference between revisions

Content deleted Content added
Black Falcon (talk | contribs)
m removing category 'Gaming operating systems' per CFD at Wikipedia:Categories for discussion/Log/2008 May 20, using AWB
rearrange
Line 1:
The '''MS-DOS API''' is an [[API]] used originally in [[MS-DOS]], /[[PC-DOS]], and later by other compatible[[DOS]]-type operating systems. The DOS API is based on [[software interrupt]] 21h (int 21h). By calling int 21h with the subfunction in AH and the other parameters in other registers, one invokes various DOS services. DOS services include keyboard input, video output, disk file access, executing programs, memory allocation, and various other things. There are various implementations of the DOS API, including MS-DOS, PC-DOS, DR-DOS, FreeDOS, PTS-DOS, and others. The DOS API is based on the [[BIOS]], and [[DOS]] routines often internally access [[BIOS interrupt call]]s.
 
The [[DOS Protected Mode Interface]] extends the DOS API to 32-bits.
[[Microsoft Windows]] versions 1.0 through 3.1 were graphical shells that ran on MS-DOS and relied on the MS-DOS API. [[Windows 9x]] was also DOS based, but used a custom version of MS-DOS mainly as a bootloader and did not use the MS-DOS API much after booting. [[Windows NT]] is not based on MS-DOS, but features a DOS emulator called [[NTVDM]]. NTVDM works by running a DOS program in [[virtual 8086 mode]] (an emulation of [[real mode]] within [[protected mode]] available on [[80386]] and higher processors). [[DOSEMU]] for [[linux]] uses a similar approach.
 
[[DPMI]] extends the==The MS-DOS API toand 32-bits.Windows==
 
[[Microsoft Windows]] versions 1.0 through 3.1 were graphical shells that ran on MS-DOS and relied on the MS-DOS API (though using [[Windows API|its own API]] for ''Windows'' programs). [[Windows 9x]] was also DOS based, but used a custom version of MS-DOS, mainly as a bootloader. It did not use the MS-DOS API much after booting.
 
[[Microsoft Windows NT]] versionsand 1.0the throughsystems 3.1based wereoff graphicalof shellsit that ran on MS-DOS and relied on the MS-DOS API(e.g. [[Windows 9xXP]] was also DOS based, but used a custom version of MS-DOS mainly as a bootloader and did not use the MS-DOS API much after booting. [[Windows NTVista]]) isare not based on MS-DOS, but featuresuse a DOS[[virtual emulator calledmachine]], [[NTVDM]], to handle the DOS API. NTVDM works by running a DOS program in [[virtual 8086 mode]] (an emulation of [[real mode]] within [[protected mode]] available on [[80386]] and higher processors). [[DOSEMU]] for [[linux]] uses a similar approach.
 
==Common DOS services==