Previous 199869 Revisions Next

r29273 Friday 4th April, 2014 at 16:24:13 UTC by hap
fixed

firewave: "And here's a few MESS/core ones I overlooked yesterday:

s:\svn\mame\src\emu\cpu\dsp16\dsp16ops.inc(365) : warning C6316: Incorrect operator:  tested expression is constant and non-zero.  Use bitwise-and to determine whether bits are set.
s:\svn\mame\src\emu\cpu\es5510\es5510.c(608) : warning C6201: Index '255' is out of valid index range '0' to '254' for possibly stack allocated buffer 'is_written'.
s:\svn\mame\src\emu\cpu\es5510\es5510.c(608) : warning C6201: Index '255' is out of valid index range '0' to '254' for possibly stack allocated buffer 'is_read'.
s:\svn\mame\src\emu\cpu\es5510\es5510.c(609) : warning C6201: Index '255' is out of valid index range '0' to '254' for possibly stack allocated buffer 'name'.
s:\svn\mame\src\emu\cpu\es5510\es5510.c(666) : warning C6201: Index '255' is out of valid index range '0' to '254' for possibly stack allocated buffer 'name'.
s:\svn\mame\src\emu\cpu\m68000\m68kcpu.c(681) : warning C6314: Incorrect order of operations:  bitwise-or has higher precedence than the conditional-expression operator.  Add parentheses to clarify intent.

"
[src/emu/cpu/dsp16]dsp16ops.inc
[src/emu/cpu/es5510]es5510.c
[src/emu/cpu/m68000]m68kcpu.c

trunk/src/emu/cpu/es5510/es5510.c
r29272r29273
600600   LOG(("ES5501: Starting!\n"));
601601
602602   char buf[1024];
603   bool is_written[0xff], is_read[0xff];
604   char name[0xff][16];
603   bool is_written[0x100], is_read[0x100];
604   char name[0x100][16];
605605   int addr;
606606
607607   for (int i = 0; i < 0x100; i++) {
trunk/src/emu/cpu/m68000/m68kcpu.c
r29272r29273
677677static void m68k_postload(m68000_base_device *m68k)
678678{
679679   m68ki_set_sr_noint_nosp(m68k, m68k->save_sr);
680   m68k->stopped = m68k->save_stopped ? STOP_LEVEL_STOP : 0
681            | m68k->save_halted  ? STOP_LEVEL_HALT : 0;
680   m68k->stopped = (m68k->save_stopped ? STOP_LEVEL_STOP : 0) | (m68k->save_halted  ? STOP_LEVEL_HALT : 0);
682681   m68ki_jump(m68k, REG_PC(m68k));
683682}
684683
trunk/src/emu/cpu/dsp16/dsp16ops.inc
r29272r29273
361361   // TODO
362362
363363   // LMV (mathematical overflow)
364   if ((result | U64(0xf00000000)) != U64(0xf00000000) &&
365      (result | U64(0xf00000000)) != U64(0x000000000))
364   if ((result & U64(0xf00000000)) != U64(0xf00000000) &&
365      (result & U64(0xf00000000)) != U64(0x000000000))
366366      m_psw |= 0x1000;
367367   else
368368      m_psw &= (~0x1000);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team