~ubuntu-branches/ubuntu/raring/mame/raring-proposed

« back to all changes in this revision

Viewing changes to mess/src/emu/cpu/dsp56k/dsp56dsm.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 
3
 
    dsp56dsm.c
4
 
    Disassembler for the portable Motorola/Freescale dsp56k emulator.
5
 
    Written by Andrew Gardner
6
 
 
7
 
***************************************************************************/
8
 
 
9
 
#include "opcode.h"
10
 
 
11
 
#include "emu.h"
12
 
#include "dsp56k.h"
13
 
 
14
 
/*****************************/
15
 
/* Main disassembly function */
16
 
/*****************************/
17
 
CPU_DISASSEMBLE( dsp56k )
18
 
{
19
 
        const UINT16 w0 = oprom[0] | (oprom[1] << 8);
20
 
        const UINT16 w1 = oprom[2] | (oprom[3] << 8);
21
 
 
22
 
        // Decode and disassemble.
23
 
        DSP56K::Opcode op(w0, w1);
24
 
        sprintf(buffer, "%s", op.disassemble().cstr());
25
 
 
26
 
        const unsigned size = op.size();
27
 
        return (size | DASMFLAG_SUPPORTED);
28
 
}