Path: utzoo!attcan!uunet!aplcen!samsung!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!mit-eddie!bloom-beacon!eru!hagbard!sunic!dkuug!iesd!iesd.auc.dk!efa From: efa@iesd.auc.dk (Erik F. Andersen) Newsgroups: comp.lang.pascal Subject: Help needed Message-ID: Date: 5 Oct 90 13:33:12 GMT Sender: news@iesd.auc.dk (UseNet News) Distribution: comp.lang.pascal Organization: Mathematics and Computer Science, University of Aalborg Lines: 14 I hope anyone will take the time to help me out with some programming problems I have. a) I want to write a resident routine that can intercept the commands entered from the DOS prompt, and process the command if it is defined in the routine, or otherwise return controle to COMMAND.COM. What I think I need to know, is the following: 1) Where in memory does DOS store the string entered? 2) What interrupt is issued after I hit return? 3) Maby it is better if my routine is invoked, after COMMAND.COM detects that the commands entered are not in it's library, and before the error: COMMAND NOT FOUND is written on the screen! How can I do this - if it's possible? b) When I in TP (v. 5.0) write sub-routines to certain hardware interrupts, like INT08 to redifine caracters written on to the screen, strange things start to happen. So far the only way I have been able to do this, is through assemble-language, where I never have any problems. I have often written sub-routines in TP to other BIOS-routines, like INT09 and INT 1C, without any trouble. If anyone think they know, what I am doing wrong, please let me know. FROM: Erik F. Andersen efa@iesd.auc.dk