~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/machine/snesdsp1.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
static void DSP1_reset(running_machine *machine)
322
322
{
323
323
        UINT32 i;
324
 
        UINT8 *dspin = memory_region(machine, "user6");
 
324
        UINT8 *dspin = memory_region(machine, "addons");
325
325
 
326
326
        mSr = DRC|RQM;
327
327
        mSrLowByteAccess = FALSE;
478
478
 
479
479
static void DSP1_memorySize(INT16 *input, INT16 *output)
480
480
{
481
 
   INT16 *Size = &output[0];
 
481
   INT16* Size = &output[0];
482
482
 
483
483
   *Size = 0x0100;
484
484
}
491
491
{
492
492
   INT16 Multiplicand = input[0];
493
493
   INT16 Multiplier = input[1];
494
 
   INT16 *Product = &output[0];
 
494
   INT16* Product = &output[0];
495
495
 
496
496
   *Product = Multiplicand * Multiplier >> 15;
497
497
}
1419
1419
 
1420
1420
   if (Angle < 0) {
1421
1421
      if (Angle == -32768) return 0;
1422
 
      return -sin((double)-Angle);
 
1422
      return -DSP1_sin(-Angle);
1423
1423
   }
1424
1424
   S = DSP1_SinTable[Angle >> 8] + (DSP1_MulTable[Angle & 0xff] * DSP1_SinTable[0x40 + (Angle >> 8)] >> 15);
1425
1425
   if (S > 32767) S = 32767;