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

« back to all changes in this revision

Viewing changes to src/emu/cpu/sh2/sh2drc.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:
20
20
#include "sh2comn.h"
21
21
#include "eminline.h"
22
22
 
 
23
CPU_DISASSEMBLE( sh2 );
 
24
 
23
25
#ifdef USE_SH2DRC
24
26
 
25
27
/***************************************************************************
3172
3174
 
3173
3175
 
3174
3176
/*-------------------------------------------------
3175
 
    sh2_dasm - disassemble an instruction
3176
 
-------------------------------------------------*/
3177
 
 
3178
 
static CPU_DISASSEMBLE( sh2 )
3179
 
{
3180
 
        return DasmSH2( buffer, pc, (oprom[0] << 8) | oprom[1] );
3181
 
}
3182
 
 
3183
 
/*-------------------------------------------------
3184
3177
    sh2_internal_a5 - read handler for
3185
3178
    SH2 internal map
3186
3179
-------------------------------------------------*/
3273
3266
                case CPUINFO_INT_CONTEXT_SIZE:                                  info->i = sizeof(SH2 *);                                break;
3274
3267
                case CPUINFO_INT_INPUT_LINES:                                   info->i = 16;                                                   break;
3275
3268
                case CPUINFO_INT_DEFAULT_IRQ_VECTOR:                    info->i = 0;                                                    break;
3276
 
                case CPUINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
 
3269
                case DEVINFO_INT_ENDIANNESS:                                    info->i = ENDIANNESS_BIG;                                       break;
3277
3270
                case CPUINFO_INT_CLOCK_MULTIPLIER:                              info->i = 1;                                                    break;
3278
3271
                case CPUINFO_INT_CLOCK_DIVIDER:                                 info->i = 1;                                                    break;
3279
3272
                case CPUINFO_INT_MIN_INSTRUCTION_BYTES:                 info->i = 2;                                                    break;
3355
3348
                case CPUINFO_PTR_INSTRUCTION_COUNTER:                   info->icount = &sh2->icount;                            break;
3356
3349
 
3357
3350
                /* --- the following bits of info are returned as NULL-terminated strings --- */
3358
 
                case CPUINFO_STR_NAME:                                                  strcpy(info->s, "SH-2");                                break;
3359
 
                case CPUINFO_STR_CORE_FAMILY:                                   strcpy(info->s, "Hitachi SuperH RISC");         break;
3360
 
                case CPUINFO_STR_CORE_VERSION:                                  strcpy(info->s, "2.0");                         break;
3361
 
                case CPUINFO_STR_CORE_FILE:                                             strcpy(info->s, __FILE__);                              break;
3362
 
                case CPUINFO_STR_CORE_CREDITS:                                  strcpy(info->s, "Copyright Nicola Salmoria and the MAME team, all rights reserved."); break;
 
3351
                case DEVINFO_STR_NAME:                                                  strcpy(info->s, "SH-2");                                break;
 
3352
                case DEVINFO_STR_FAMILY:                                        strcpy(info->s, "Hitachi SuperH RISC");         break;
 
3353
                case DEVINFO_STR_VERSION:                                       strcpy(info->s, "2.0");                         break;
 
3354
                case DEVINFO_STR_SOURCE_FILE:                                           strcpy(info->s, __FILE__);                              break;
 
3355
                case DEVINFO_STR_CREDITS:                                       strcpy(info->s, "Copyright Nicola Salmoria and the MAME team, all rights reserved."); break;
3363
3356
 
3364
3357
                case CPUINFO_STR_FLAGS:
3365
3358
                        sprintf(info->s, "%c%c%d%c%c",
3410
3403
                case CPUINFO_FCT_RESET:                                         info->reset = CPU_RESET_NAME(sh1);                              break;
3411
3404
 
3412
3405
                /* --- the following bits of info are returned as NULL-terminated strings --- */
3413
 
                case CPUINFO_STR_NAME:                                          strcpy(info->s, "SH-1");                                break;
 
3406
                case DEVINFO_STR_NAME:                                          strcpy(info->s, "SH-1");                                break;
3414
3407
 
3415
3408
                default:                                                        CPU_GET_INFO_CALL(sh2);                 break;
3416
3409
        }