How does DOS load a program into memory?

When command.com is asked to execute a .com or .exe file, it will call the interrupt service 21h/AH=4B, the EXEC service. It is up to the calling program to: build a DOS EXEC parameter block (see http://www.delorie.com/djgpp/doc/rbinter/it/90/15.html ) (includes information on environment variables, command lines arguments, FCBs and register values on return) free up all … Read more

Embedding a DOS console in a windows form

It’s possible to redirect the standard input/output of console/dos applications using the Process class. It might look something like this: var processStartInfo = new ProcessStartInfo(“someoldapp.exe”, “-p someparameters”); processStartInfo.UseShellExecute = false; processStartInfo.ErrorDialog = false; processStartInfo.RedirectStandardError = true; processStartInfo.RedirectStandardInput = true; processStartInfo.RedirectStandardOutput = true; processStartInfo.CreateNoWindow = true; Process process = new Process(); process.StartInfo = processStartInfo; bool processStarted … Read more

Displaying characters with DOS or BIOS

All of the forementioned functions are unique in what they accomplish, but at first the abundance does seem somewhat exagerated. Int 21h AH=02h Write Character To Standard Output This function interprets the character codes 7 (Beep), 8 (Backspace), 9 (Tab), 10 (Linefeed), and 13 (Carriage return). All other character codes are displayed. Backspace is nondestructive … Read more