Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!amdahl!ames!sdcsvax!ucsdhub!jack!man!nusdhub!rwhite From: rwhite@nusdhub.UUCP (Robert C. White Jr.) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: Help needed with RAM resident program on Microsoft `C' Message-ID: <123@nusdhub.UUCP> Date: Tue, 13-Oct-87 16:50:50 EDT Article-I.D.: nusdhub.123 Posted: Tue Oct 13 16:50:50 1987 Date-Received: Thu, 15-Oct-87 19:56:40 EDT References: <506@umbc3.UMD.EDU> Organization: National University, San Diego Lines: 22 Summary: OK... Here goes. Xref: mnetor comp.lang.c:4889 comp.sys.ibm.pc:9033 In article <506@umbc3.UMD.EDU>, dipto@umbc3.UMD.EDU (Dipto Chakravarty ) writes: > Hi folks, > In assembly one would set the origin by doing `ORG 100' and then > subsequently altering the vectors; but how can we do it from C ? Dont sweat this one. The only reason you set the ORG 100 is to make the program conform to "*.com" fromat. MSC takes care of the *.EXE or *.COM format of the executables, both of which may be left resident, so just write the MOST effecent loader "main()" you can and go for it. > chip; subsequently processes the value. I want that if this value is valid > the RAM resident program pops a message on the screen. The only thing I know about this is that you must preserve the old "timer interrupt" value, and call it just before you "return" The procedure type "interrupt" is supposed to do some, but not all, of this for you. For the syntax of "interrupts" you will have to look that up yourself. Robert.