Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!gargoyle!att!alberta!teletron!adec23!mark From: mark@adec23.UUCP (Mark Salyzyn) Newsgroups: comp.sys.ibm.pc Subject: MSC coded replacement for COMMAND.COM Keywords: Turnkey application, what must I initialize? what must be trapped? Message-ID: <1284@adec23.UUCP> Date: 24 May 88 15:46:04 GMT Distribution: na Organization: ADEC Systems Inc., Edmonton, Alberta Lines: 33 In CONFIG.SYS: SHELL=HELLO.EXE In HELLO.C: main () { for (;;) cprintf ("Hello World\r\n") ; } cprintf is a console only printf (yes I tried printf with similar results.) I tried replacing cprintf with: cprintf (cp) register char *cp ; { while (*cp) bdos (6, *(cp++)) ; } The machine just stops after initial setup with a cursor on Left Top Corner, no activity, but rebootable. Control C does exite a `^C' on screen, but thats it. I want to replace command.com with my own simple menu driver to save floppy disk space for a turnkey application. I assume some initialization that my MSC compiler (version 3.0 here) is not getting performed and some runtime library routine is STOPPED UP, and/or some vector must be trapped? Am i missing something (of course I am). I assume that if it is a runtime routine, 4.0 and up probably have solved the problem? After that question is solved, what about the trapping of 0x22, 0x23 and 0x24? Thanks in advance, post if small, mail if long. -- Stamp out long .sigs alberta!{teletron,uofaee}!adec23!mark Mark Salyzyn