Message-Id: <3.0.2.32.20001029035711.007cfc10@pop3.uol.com.br> X-Sender: slotman AT pop3 DOT uol DOT com DOT br X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.2 (32) Date: Sun, 29 Oct 2000 03:57:11 -0200 To: djgpp AT delorie DOT com From: SLotman Subject: Re: Porting to djgpp In-Reply-To: <8tgbba$k77$1@slb1.atl.mindspring.net> References: <3 DOT 0 DOT 2 DOT 32 DOT 20001029024820 DOT 007c8150 AT pop3 DOT uol DOT com DOT br> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Yes, you are right, that's the program exactly. Could you please send me the code? I've read already the faq, but don't know what to do next.... As I said I only know the basics of C, and studying your code would help me A LOT right now.... Thank you very much, SLotman At 01:07 AM 29/10/2000 -0400, you wrote: >This code looks very familiar. It looks like the code from a program called >readcda. I made a working version of it using djgpp and trust me it requires >a lot of changes to make it work properly. The reason for this is not only >do you need to put structures into real mode memory, but those structures >are also supposed to contain pointers to other structures (also in real mode >memory). Porting this program is not easy, but if you know what you're doing >it's also not that hard. In any case you should reread chap 18 of the faq >(18.2, 18.4 and 18.5 especially) and ask questions about parts of the >explanation that you don't understand. > >I can also send you the code of the port I did if you want it, but I think >the learning experience would be good for you. > >Hope this helps > >Marp > >"SLotman" wrote in message >news:3 DOT 0 DOT 2 DOT 32 DOT 20001029024820 DOT 007c8150 AT pop3 DOT uol DOT com DOT br... >> Can anyone help me with this? >> I found some source code on how to copy cd tracks to wav files. All the >code >> compiles well under djgpp except this routine: >> >> void CallDevice(void *ptr) >> { >> static union REGS reg; >> static struct SREGS seg; >> >> segread(&seg); >> seg.es=FP_SEG(ptr); >> reg.x.ax=0x1510; >> reg.x.bx=FP_OFF(ptr); >> reg.x.cx=CDROM; >> int86x(0x2f, ®, ®, &seg); >> } >> >> I know it is about the flat address memory djgpp uses, and I read the >djgpp >> FAQ, but I have no clue on how to convert it to djgpp - I only know the >> basics of C... >> >> Any help appreciated.... >> >> Thanks in advance, >> >> SLotman >> > > > SLotman (slotman AT domain DOT com DOT br - slotman AT uol DOT com DOT br) [ http://www.msxfiles.cjb.net - http://www.newmsx.cjb.net ] [ http://www.revolutionplayer.com - http://www.parlamentodamoda.com.br ] [ http://www.djslotman.cjb.net ]