Mail Archives: djgpp/2000/10/29/01:15:16
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, ®, ®, &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 -