Discussion Locked

Old Dos.h file for Game/Graphics Program

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello everyone! My question for yall is this, does anyone remember the old "dos.h" file? It contained functions for Assembly/Processor Registers (in my case Intel/80x86).

Most older game programming books refer to it, but the new "dos.h" is actually a system-like file (ie. timer(); -ish functions).

I know of the _asm(); function to get to processor registers, some Assembly, and that protection modes need changing, but ---

I just want to know, is there like an "oldDos.h-like" file, configured for 98/XP, I'd like to avoid making one myself if I can.

Jay

BTW I'm using Visual C++ 6.0 on 80x86 processor.

Save Me!

2 replies

by miles.felton

I don't really know because I'd assumed that it was no longer possible to do things like access UARTS, PITs and PICs, screen RAM, etc. in ordinary programs. I thought these things had to be done by kernel mode code or by device drivers. There is a device driver kit from MS. Note that many things have stopped working on newer Wins - even the old Linux disk repartition util FIPS doesn't work anymore. However we are no longer limited to modern versions of Wins on modern PCs - we can use VMWare - avirtual machine program which will let you instal and run all the old ones (if you have copies).

by jackofalltech

Just about any C compiler written for Win3.1 will have the DOS.H file you need. Although the program probably won't work too well under Windows (any version 9x+). If you don't have such a compiler, go to www.borland.com and download their free TC2.01 (I think).

Ralph

This discussion is closed to new replies.