# unit dos

### Mad Pascal DOS interface

author: Tomasz Biela (Tebe)

The DOS unit gives access to some operating system calls related to files, the file system, date and time.
https://www.freepascal.org/docs-html/rtl/dos/index.html

## Register Variables:

name: | address: | type: | description:
--- | --- | --- | ---
palntsc | $d014 | byte |

## Interface:

name: | description:
--- | ---
DosVersion | #### function DosVersion: word; assembler; Current DOS version
GetTime | #### procedure GetTime(var hour, minute, second, msec: word); Return the current time ##### parameters: hour - word variable minute - word variable second - word variable msec - word variable
SetTime | #### procedure SetTime(hour, minute, second, msec: word); Set system time ##### parameters: hour - word variable minute - word variable second - word variable msec - word variable