Subject: ASC info from Antoine Rosset!
To: None <port-mac68k@NetBSD.org>
From: Nathan Raymond <nate@portents.com>
List: port-mac68k
Date: 05/27/1999 19:36:09
Last week I contacted Antoine Rosset for info about the Apple Sound 
Chip, asking him for any info he could give to help the NetBSD 
effort.  (Antoine used to have a driver in his Player Pro MOD 
player/writing program called Direct ASC, which was much faster than 
Apple's Sound Manager because he bypassed the API and worked directly 
with the chip, but the speed gains were more negligible with PPC and 
it was phased out.  I figured he'd be a good person to ask about 
doing sound in NetBSD!)  Here's his response:

Date: Thu, 27 May 1999 21:47:41 +0200
Subject: Re: ASC support in NetBSD, can you help?
From: "Rosset Antoine" <rossetantoine@bluewin.ch>
To: Nathan Raymond <nate@portents.com>

> What do you think, will you please consider it?  I bet it wouldn't be
> difficult for you at all! :-)

I cancelled my support for the ASC driver...

Here is some doc:

#define ASCBase     0x0CC0
#define ASCSIZE     370L
#define ASCOFFSET   0x400L

destGPtr = *((Ptr*) ASCBase);     // Gauche
destDPtr = destGPtr + ASCOFFSET;  // Droite

BlockMove( monSonPourGauche, destGPtr, ASCSIZE);
BlockMove( monSonPourDroite, destDPtr, ASCSIZE);

void FillASCBuffer()
{
asm
{
  MOVEM.L  D0-D7/A0-A4, -(SP)
 
  MOVEA.L  (ASCBase), A4
  MOVEA.L  monSonPourGauche, A3
 
  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)  /* 352, jusqu'ici */

  MOVEM.L  (A3)+, D0-D3
  MOVEM.L  D0-D3, (A4)
 
  MOVE.W  (A3), (A4)

 
  /* Droite !!! */
 
  MOVEA.L  (ASCBase), A4
  ADDA.L  #0x400, A4
  MOVEA.L  monSonPourDroite, A3
 
  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)

  MOVEM.L  (A3)+, D0-D7/A0-A2
  MOVEM.L  D0-D7/A0-A2, (A4)  /* 352, jusqu'ici */

  MOVEM.L  (A3)+, D0-D3
  MOVEM.L  D0-D3, (A4)
 
  MOVE.W  (A3), (A4)

  MOVEM.L  (SP)+, D0-D7/A0-A4
}
}


--

Sincerely,

Antoine

<> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <>
<>
<> NEWS : Version 5.1 NOW available !
<>
<> Download the latest version of PlayerPRO at :
<>
<> http://www.quadmation.com/pphome.htm
<> http://hyperarchive.lcs.mit.edu/cgi-bin/NewSearch?key=PlayerPRO
<>
<> Antoine ROSSET (RossetAntoine@bluewin.ch)
<> 16 BD Tranchees/CH-1206 Geneva/Switzerland
<> Fax:   (+41 22) 346 11 97
<> Phone: (+41 79) 203 74 62
<> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <>