3,8 → 3,8 |
http://mdr.osdn.io |
|
|
Mateusz' DOS Routines (MDR) is a collection of C library that contain a variety |
of routines to ease the development of real mode DOS applications. |
Mateusz' DOS Routines (MDR) is a C library that contains a variety of routines |
to ease the development of real mode DOS applications. |
|
These routines are mostly targeted at the Open Watcom compiler, but might work |
with other C compilers as well. |
19,10 → 19,11 |
DOS functions interacting with DOS |
KEYB basic functions to interact with the keyboard |
MOUSE mouse routines |
OPL OPL2 (Adlib style) audio |
PCX parsing, loading and uncompressing PCX images |
RS232 writing to and reading from an RS-232 ("COM") port |
SBDIGI playing digitized sounds with a SoundBlaster-compatible card |
TIMER high-resolution timer, relies on PIT reprogramming |
TIMER high-resolution (1 kHz) timer, relies on PIT reprogramming |
TRIGINT sin and cos functions using integers only (8086-compatible) |
UNZIP iteration over ZIP archives (no decompression code) |
VID12 driver for mode 12h VGA graphic (640x480, 16 colors) |
30,7 → 31,7 |
WAVE parsing and loading WAVE sound files |
XMS detecting and using XMS memory to store data |
|
Documentation is contained within header (*.H) files. |
Documentation is contained in header (*.H) files in the INC\MDR\ directory. |
|
|
+============================================================================+ |
43,16 → 44,16 |
|
Example program, KBTEST.C: |
|
#include <mdr\keyb.h> |
#include <mdr\dos.h> |
|
int main(void) { |
keyb_getkey(); |
mdr_dos_getkey(); |
return(0); |
} |
|
How to compile with the Watcom C Compile and Link Utility: |
|
wcl -ms kbtest.c mdrs2023.lib |
wcl -ms kbtest.c mdrs2024.lib |
|
|
+============================================================================+ |
59,7 → 60,7 |
| COMPILATION FROM SOURCES | |
+============================================================================+ |
|
Should you wish to compile MDR from souces instead of relying on precompiled |
Should you wish to compile MDR from sources instead of relying on precompiled |
LIB binaries, you will need the Watcom (or Open Watcom) C compiler and use its |
wmake utility as follows: |
|
66,7 → 67,7 |
wmake clean |
wmake model=<MEMORY MODEL> |
|
valid options are: |
valid memory model options are: |
|
wmake model=s |
wmake model=c |