From: nikki AT gameboutique DOT co (nikki) Newsgroups: comp.os.msdos.djgpp Subject: real mode calls pmode Date: 22 Feb 1997 14:05:50 GMT Organization: GameBoutique Ltd. Lines: 21 Message-ID: <5emufu$e7u@flex.uunet.pipex.com> NNTP-Posting-Host: www.gameboutique.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp i have an interface driver for some hardware which sadly is written in old 16 bit real mode code. one of the things it requires is that it can call part of my code which i'm writing now under djgpp. if i want it to be able to call my function wibble() from within code how exactly should i do this? currently, i'm locking all the memory in the same way i would have done for interrupts, then i pass the entry point to my function as SEG=(((unsigned int)wibble)>>4) & 0xffff; OFF=wib & 0xf but i get sigsegv problems everywhere :( it's not actually an interrupt that's calling me so i can't use the same routines i used to do those with can i? i can't seem to find anything in the faq that helps, the closest is all irq based but i'm not hooking any irqs here at all :( regards, nik -- Graham Tootell nikki AT gameboutique DOT com