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

« back to all changes in this revision

Viewing changes to src/emu/cpu/dsp32/dsp32.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:
30
30
#include "debugger.h"
31
31
#include "dsp32.h"
32
32
 
 
33
CPU_DISASSEMBLE( dsp32c );
33
34
 
34
35
 
35
36
/***************************************************************************
402
403
 
403
404
 
404
405
/***************************************************************************
405
 
    DISASSEMBLY HOOK
406
 
***************************************************************************/
407
 
 
408
 
static CPU_DISASSEMBLE( dsp32c )
409
 
{
410
 
        extern unsigned dasm_dsp32(char *, unsigned, UINT32);
411
 
        return dasm_dsp32(buffer, pc, oprom[0] | (oprom[1] << 8) | (oprom[2] << 16) | (oprom[3] << 24));
412
 
}
413
 
 
414
 
 
415
 
 
416
 
/***************************************************************************
417
406
    PARALLEL INTERFACE WRITES
418
407
***************************************************************************/
419
408
 
742
731
                case CPUINFO_INT_CONTEXT_SIZE:                                  info->i = sizeof(dsp32_state);                  break;
743
732
                case CPUINFO_INT_INPUT_LINES:                                   info->i = 2;                                                    break;
744
733
                case CPUINFO_INT_DEFAULT_IRQ_VECTOR:                    info->i = 0;                                                    break;
745
 
                case CPUINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_LITTLE;                    break;
 
734
                case DEVINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_LITTLE;                    break;
746
735
                case CPUINFO_INT_CLOCK_MULTIPLIER:                              info->i = 1;                                                    break;
747
736
                case CPUINFO_INT_CLOCK_DIVIDER:                                 info->i = 1;                                                    break;
748
737
                case CPUINFO_INT_MIN_INSTRUCTION_BYTES:                 info->i = 4;                                                    break;
831
820
                case CPUINFO_PTR_INSTRUCTION_COUNTER:                   info->icount = &cpustate->icount;                       break;
832
821
 
833
822
                /* --- the following bits of info are returned as NULL-terminated strings --- */
834
 
                case CPUINFO_STR_NAME:                                                  strcpy(info->s, "DSP32C");                              break;
835
 
                case CPUINFO_STR_CORE_FAMILY:                                   strcpy(info->s, "Lucent DSP32");                break;
836
 
                case CPUINFO_STR_CORE_VERSION:                                  strcpy(info->s, "1.0");                                 break;
837
 
                case CPUINFO_STR_CORE_FILE:                                             strcpy(info->s, __FILE__);                              break;
838
 
                case CPUINFO_STR_CORE_CREDITS:                                  strcpy(info->s, "Aaron Giles");                 break;
 
823
                case DEVINFO_STR_NAME:                                                  strcpy(info->s, "DSP32C");                              break;
 
824
                case DEVINFO_STR_FAMILY:                                        strcpy(info->s, "Lucent DSP32");                break;
 
825
                case DEVINFO_STR_VERSION:                                       strcpy(info->s, "1.0");                                 break;
 
826
                case DEVINFO_STR_SOURCE_FILE:                                           strcpy(info->s, __FILE__);                              break;
 
827
                case DEVINFO_STR_CREDITS:                                       strcpy(info->s, "Aaron Giles");                 break;
839
828
 
840
829
                case CPUINFO_STR_FLAGS:
841
830
                        sprintf(info->s, "%c%c%c%c%c%c%c%c",