From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Converting old routines - Goddamn it all to hell!!!!!!!!!! Date: Fri, 8 Aug 1997 19:07:57 +0100 Organization: None Distribution: world Message-ID: References: <33eab2e1 DOT 10926675 AT news DOT mackay DOT net DOT au> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 56 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ian McArdle writes: >How in gods name do I convert the following functions into DJGPP??? > >Bloody Hell Hey, relax! I know how frustrating it can be when you run into coding problems, but it isn't our fault, and being rude generally just makes people less inclined to help you... >_fmemcpy?????? >_fmemset??????? Use memcpy() and memset() instead. That is assuming these are being used with regular pointers such as the ones returned by malloc(). If they are writing to a specific physical address like the video memory, the code will need a great deal of rewriting to work in protected mode: see http://www.rt66.com/~brennan/djgpp/ for an intro to djgpp graphics coding. >memicmp?????? >segread?????? I don't know what these do, so I'm afraid I can't help you here. >_dos_getvect >_dos__setvect I'm sure you are hoping for a nice simple "use this function instead" type answer, but I'm afraid no such thing is possible. Interrupt handling in djgpp is a complex issue, and is really too big to cover in the context of an email... >Yes Ive read the lousy faq. I say lousy because I have never read such >a poor attempt at a Faq before in my life. Hint: insulting someone is not usually the best way to make them help you with your problems. Eli has spent a tremendous amount of time working on that FAQ, and also writes a large number of very helpful and informative posts to this group. If you said something like "I don't understand what such-and-such means", I suspect he would be delighted to clarify it, both for you now and for future readers of the FAQ. Maybe you should consider telling us what you find confusing, rather than dismissing the entire thing in such obnoxious terms. This isn't what you want to hear, but I really don't see any point trying to explain interrupt handers since there is no way I could ever do it any more clearly than the existing text in the FAQ. Section 18.9 gives a very detailed explanation of what you need to do, and also points you to an interrupt handling tutorial written by Alaric B. Williams. If you don't understand these, try asking specific questions and I'll be glad to clarify whatever you have got stuck on... -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ Beauty is a French phonetic corruption of a short cloth neck ornament.