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

« back to all changes in this revision

Viewing changes to src/emu/cpu/i860/i860dis.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:
116
116
 *   mnemonic %fs1,%fs2,%fd  */
117
117
static void flop_12d(char *buf, char *mnemonic, UINT32 pc, UINT32 insn)
118
118
{
119
 
        const char *suffix[4] = { "ss", "sd", "ds", "dd" };
 
119
        const char *const suffix[4] = { "ss", "sd", "ds", "dd" };
120
120
        const char *prefix_d, *prefix_p;
121
121
        int s = (insn & 0x180) >> 7;
122
122
        prefix_p = (insn & 0x400) ? "p" : "";
152
152
        /* Special case: pfgt/pfle-- R-bit distinguishes the two.  */
153
153
        if ((insn & 0x7f) == 0x34)
154
154
        {
155
 
                const char *mn[2] = { "fgt.", "fle." };
 
155
                const char *const mn[2] = { "fgt.", "fle." };
156
156
                int r = (insn & 0x080) >> 7;
157
157
                int s = (insn & 0x100) ? 3 : 0;
158
158
                sprintf(buf, "%s%s%s%s\t%%f%d,%%f%d,%%f%d", prefix_d, prefix_p, mn[r],
168
168
 *   mnemonic %fs1,%fd  */
169
169
static void flop_1d(char *buf, char *mnemonic, UINT32 pc, UINT32 insn)
170
170
{
171
 
        const char *suffix[4] = { "ss", "sd", "ds", "dd" };
 
171
        const char *const suffix[4] = { "ss", "sd", "ds", "dd" };
172
172
        const char *prefix_d, *prefix_p;
173
173
        int s = (insn & 0x180) >> 7;
174
174
        prefix_p = (insn & 0x400) ? "p" : "";
182
182
 *   mnemonic %fs2,%fd  */
183
183
static void flop_2d(char *buf, char *mnemonic, UINT32 pc, UINT32 insn)
184
184
{
185
 
        const char *suffix[4] = { "ss", "sd", "ds", "dd" };
 
185
        const char *const suffix[4] = { "ss", "sd", "ds", "dd" };
186
186
        const char *prefix_d;
187
187
        int s = (insn & 0x180) >> 7;
188
188
        prefix_d = (insn & 0x200) ? "d." : "";
243
243
{
244
244
        /* Operand size, in bytes.  */
245
245
        int sizes[4] = { 1, 1, 2, 4 };
246
 
        const char *suffix[4] = { "b", "b", "s", "l" };
 
246
        const char *const suffix[4] = { "b", "b", "s", "l" };
247
247
        UINT32 idx = 0;
248
248
 
249
249
        /* Bits 28 and 0 determine the operand size.  */
270
270
{
271
271
        /* Operand size, in bytes.  */
272
272
        int sizes[4] = { 1, 1, 2, 4 };
273
 
        const char *suffix[4] = { "b", "b", "s", "l" };
 
273
        const char *const suffix[4] = { "b", "b", "s", "l" };
274
274
        int idx = 0;
275
275
        int size;
276
276
        INT32 immsrc = sign_ext ((((insn >> 5) & 0xf800) | (insn & 0x07ff)), 16);
297
297
        INT32 immsrc1 = sign_ext (get_imm16 (insn), 16);
298
298
        /* Operand size, in bytes.  */
299
299
        int sizes[4] = { 8, 4, 16, 4 };
300
 
        const char *suffix[4] = { "d", "l", "q", "l" };
 
300
        const char *const suffix[4] = { "d", "l", "q", "l" };
301
301
        int idx = 0;
302
302
        int size = 0;
303
303
        int auto_inc = (insn & 1);
304
 
        const char *auto_suff[2] = { "", "++" };
 
304
        const char *const auto_suff[2] = { "", "++" };
305
305
        int piped = (insn & 0x40000000) >> 29;
306
 
        const char *piped_suff[2] = { "", "p" };
 
306
        const char *const piped_suff[2] = { "", "p" };
307
307
        int upper_6bits = (insn >> 26) & 0x3f;
308
308
        int is_load = (upper_6bits == 8 || upper_6bits == 9 || upper_6bits == 24
309
309
                                   || upper_6bits == 25);
356
356
/* flush #const(isrc2)[++].  */
357
357
static void int_flush(char *buf, char *mnemonic, UINT32 pc, UINT32 insn)
358
358
{
359
 
        const char *auto_suff[2] = { "", "++" };
 
359
        const char *const auto_suff[2] = { "", "++" };
360
360
        INT32 immsrc = sign_ext (get_imm16 (insn), 16);
361
361
        immsrc &= ~(16-1);
362
362
        sprintf(buf, "%s\t%d(%%r%d)%s", mnemonic, immsrc, get_isrc2 (insn),