Home
Code snippets/demos
| Environment |
Hardware and software interrupts |
Video mode detect and set; framebuffer access |
Sector-level disk I/O (CHS or LBA) |
Raw keyboard input functions (kbhit and getch) |
| DOS; 16-bit Watcom C |
wat16int.c |
tcvbe.c |
|
(use CONIO.H) |
| DOS; 32-bit Watcom C; CauseWay DOS extender |
wat32int.c |
wat32vbe.c |
|
(use CONIO.H) |
| DOS; DJGPP (32-bit) |
djint.c |
djvbe.c |
|
(use CONIO.H) |
| DOS; Turbo C (16-bit) |
tcint.c |
tcvbe.c |
|
(use CONIO.H) |
| Linux |
linuxint.c |
linuxvid.c |
|
kbhit.c |
| Win32 |
winint.c |
winvid.c |
|
winkey |
Haruhiko Okumura's LZSS (de)compression program,
modified to be compatible with files produced by Microsoft COMPRESS.
The text file in this .ZIP contains a short but interesting history
of data compression.
Copy a chunk of sound from one .WAV file to
another. Good for editing gigantic sound files on systems
with little RAM.
C code to recursively traverse a file hierarchy.
Output is similar to that of 'dir /s /b' under MS-DOS.
A program to convert text Usenet messages to
framed HTML. Here is a screenshot of the
output.
play audio CD without MSCDEX (DOS)
C++ fixed-point class
Tetris for DOS (requires ANSI.SYS) or Linux
Assembly-language programs:
DJGPP programs:
Graphics programs:
Updated Nov 29, 2005. Still lots of functionality missing.
The main improvements are:
- Support for RGB color (16-, 24-, and 32-bit)
- blit() and blot() functions for VBE 1.x
banked framebuffer have been debugged.
Screen shot. The menus don't work and the
windows don't do anything.
- In-memory bitmaps and screen bitmap (framebuffer) are
indistinguishable to the programmer.
- Written in C, with one function (shift) in asm.
- Works in both 16-bit real mode and 32-bit pmode.
- Very modular; can leave out the bits you don't want/need.
- Support for non-Latin text (e.g. Arabic)
- "Virtual" screen; larger than displayed screen area;
scrolls when mouse is moved against the screen edge.
- 1-bit (monochrome), 2-bit packed pixel (4-color), 4-plane
(16-color), and 8-bit (256-color) bitmaps.
- Loads and displays BDF fonts.
- Windows. Efficient clipping engine.
Known bugs:
- Breaks in the horizontal parts of the lasso (selection rectangle).
- Banked 8-bit driver is unstable, and causes segfaults.
- 2-bit (4-color) driver is incomplete.
Sound player for DOS with Windows Sound System (WSS). Plays .wav or .au
files in linear PCM, MS-ADPCM, A-law, or u-law codecs. This is greatly
improved over the last release, but I am still trying to get the Sound
Blaster driver, Win32 driver, and WSS softset working.