delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/29/01:15:16

From: "Marp" <marp AT 0 DOT 0 DOT 0 DOT 0>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Porting to djgpp
Date: Sun, 29 Oct 2000 01:07:48 -0400
Organization: MindSpring Enterprises
Lines: 50
Message-ID: <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>
NNTP-Posting-Host: 04.30.99.a2
X-Server-Date: 29 Oct 2000 05:07:54 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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" <slotman AT uol DOT com DOT br> 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, &reg, &reg, &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
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019