andrews@hpcupt1.HP.COM (Edward E. Andrews) (01/07/89)
While writing a debugger I've run across the DOS function 4B with subfunction 1. This is supposed to load a program without executing it. I've found that the initial CS:IP and SS:SP are returned. Also, the termination address in the PSP of the just loaded program point back to the instruction just after the INT 21h. My questions are: do all debuggers use this? is this the best way to load a program for debugging? are there any "gotchas" by loading a program this way? how is the program "unloaded" when the debugger itself terminates (i.e. the program doesn't do DOS fucnction 4c)? Thanks in advance.