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

« back to all changes in this revision

Viewing changes to src/emu/cpu/ssem/ssem.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:
8
8
#include "debugger.h"
9
9
#include "ssem.h"
10
10
 
 
11
CPU_DISASSEMBLE( ssem );
 
12
 
 
13
 
11
14
#define SSEM_DISASM_ON_UNIMPL           0
12
15
#define SSEM_DUMP_MEM_ON_UNIMPL         0
13
16
 
234
237
    return cycles - cpustate->icount;
235
238
}
236
239
 
237
 
/*****************************************************************************/
238
 
 
239
 
static CPU_DISASSEMBLE( ssem )
240
 
{
241
 
    UINT32 op = (*(UINT8 *)(opram + 0) << 24) |
242
 
                (*(UINT8 *)(opram + 1) << 16) |
243
 
                (*(UINT8 *)(opram + 2) <<  8) |
244
 
                (*(UINT8 *)(opram + 3) <<  0);
245
 
    return ssem_dasm_one(buffer, pc, op);
246
 
}
247
240
 
248
241
/*****************************************************************************/
249
242
 
271
264
        case CPUINFO_INT_CONTEXT_SIZE:          info->i = sizeof(ssem_state);   break;
272
265
        case CPUINFO_INT_INPUT_LINES:           info->i = 0;                    break;
273
266
        case CPUINFO_INT_DEFAULT_IRQ_VECTOR:    info->i = 0;                    break;
274
 
        case CPUINFO_INT_ENDIANNESS:            info->i = ENDIANNESS_LITTLE;    break;
 
267
        case DEVINFO_INT_ENDIANNESS:            info->i = ENDIANNESS_LITTLE;    break;
275
268
        case CPUINFO_INT_CLOCK_MULTIPLIER:      info->i = 1;                    break;
276
269
        case CPUINFO_INT_CLOCK_DIVIDER:         info->i = 1;                    break;
277
270
        case CPUINFO_INT_MIN_INSTRUCTION_BYTES: info->i = 4;                    break;
305
298
        case CPUINFO_PTR_INSTRUCTION_COUNTER:   info->icount = &cpustate->icount;               break;
306
299
 
307
300
        /* --- the following bits of info are returned as NULL-terminated strings --- */
308
 
        case CPUINFO_STR_NAME:                          strcpy(info->s, "SSEM");                break;
309
 
        case CPUINFO_STR_CORE_FAMILY:                   strcpy(info->s, "SSEM");                break;
310
 
        case CPUINFO_STR_CORE_VERSION:                  strcpy(info->s, "1.0");                 break;
311
 
        case CPUINFO_STR_CORE_FILE:                     strcpy(info->s, __FILE__);              break;
312
 
        case CPUINFO_STR_CORE_CREDITS:                  strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
 
301
        case DEVINFO_STR_NAME:                          strcpy(info->s, "SSEM");                break;
 
302
        case DEVINFO_STR_FAMILY:                   strcpy(info->s, "SSEM");                break;
 
303
        case DEVINFO_STR_VERSION:                  strcpy(info->s, "1.0");                 break;
 
304
        case DEVINFO_STR_SOURCE_FILE:                     strcpy(info->s, __FILE__);              break;
 
305
        case DEVINFO_STR_CREDITS:                  strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
313
306
 
314
307
        case CPUINFO_STR_FLAGS:                         strcpy(info->s, " ");                   break;
315
308