From: "Alexei A. Frounze" Newsgroups: alt.os.development,alt.os.assembly,comp.lang.asm.x86,comp.os.msdos.djgpp,alt.lang.asm Subject: Re: ISR with DJGPP in a kernel. Date: 8 Jan 2000 14:51:08 GMT Organization: Cityline news server Lines: 41 Approved: Message-ID: <857iss$qmq$1@bob.news.rcn.net> References: X-Trace: 6Stc00fZL9B4gJ45FnBsf0GsIarMmOtimY39uYThm/A= X-Complaints-To: abuse AT rcn DOT com NNTP-Posting-Date: 8 Jan 2000 14:51:08 GMT Cache-Post-Path: mao.cityline.ru!unknown AT 17 DOT 161 DOT 11 DOT dn DOT dialup DOT cityline DOT ru X-Track2: 2 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 X-Mozilla-Status: 0801 X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-Apparently-To: clax86 AT yahoo DOT com via web1705.mail.yahoo.com X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) X-Track: 1-1: 40 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Try out my COFFUTIL package. It has a sample program in C (for DJGPP compiler) that handles IRQs(0=timer,1=keyboard,3/4=standard serial mouse), exceptions and has partially implemented standard c library (inport?/outport?,printf,kbhit,getch, and much more). URL #1 = http://alexfru.chat.ru URL #2 = http://members.xoom.com/alexfru Good Luck Alexei A. Frounze Groman пишет в сообщении ... > >I am writing a small kernel using DJGPP and NASM, and I bumped into several >problems(again). > >Ok...here are my steps. > >1) I create the IDT and load the register. >2) I reprogram the PIC to shift the IRQs so they do not overlap with the >exceptions. >3) I disable all IRQs beside 2 and 0. >Now I want to create a handler for 0(the timer) in C... >now, how exactly do I do that... I mean it jumps out of the code right in >the middle of the function...and starts another one? > >that doesn't sound right... > >shoud I do the handler in assembly that calls C functions then? or is there >a way to turn an ordinary DJGPP function >into a handler... > >ok...thank you for your help in advance... > >groman. > >