delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/29/00:41:06

Message-Id: <3.0.2.32.20001029024820.007c8150@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 02:48:20 -0200
To: djgpp AT delorie DOT com
From: SLotman <slotman AT uol DOT com DOT br>
Subject: Porting to djgpp
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

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