Previous 199869 Revisions Next

r18269 Wednesday 3rd October, 2012 at 16:13:27 UTC by Oliver Stöneberg
removed some more expressions which are always true/false (no whatsnew)
[src/mame/drivers]chihiro.c firebeat.c gstream.c megaplay.c segas16a.c taitopjc.c
[src/mame/video]artmagic.c konamigx.c m90.c

trunk/src/mame/video/konamigx.c
r18268r18269
174174            cx += incxx;
175175            cy += incxy;
176176
177            if (offs<0 || offs>=src_size)
177            if (offs>=src_size)
178178               continue;
179179
180180            if (srcx < src_minx || srcx > src_maxx || srcy < src_miny || srcy > src_maxy)
r18268r18269
244244            cx += incxx;
245245            cy += incxy;
246246
247            if (offs<0 || offs>=src_size)
247            if (offs>=src_size)
248248               continue;
249249
250250            if (srcx < src_minx || srcx > src_maxx || srcy < src_miny || srcy > src_maxy)
trunk/src/mame/video/artmagic.c
r18268r18269
2323{
2424   offs_t original = *address;
2525   *address = TOWORD(original & 0x001fffff);
26   if (original >= 0x00000000 && original < 0x001fffff)
26   if (original < 0x001fffff)
2727      return state->m_vram0;
2828   else if (original >= 0x00400000 && original < 0x005fffff)
2929      return state->m_vram1;
trunk/src/mame/video/m90.c
r18268r18269
278278{
279279   offset -= page * 0x2000;
280280
281   if (offset >= 0 && offset < 0x2000)
281   if (offset < 0x2000)
282282      tmap->mark_tile_dirty(offset/2);
283283}
284284
trunk/src/mame/drivers/taitopjc.c
r18268r18269
110110            tile &= 0xff;
111111            tile -= 0x40;
112112
113            if (tile < 0) tile = 0;
114113            if (tile > 127) tile = 127;
115114
116115            for (y=0; y < 16; y++)
trunk/src/mame/drivers/firebeat.c
r18268r18269
841841{
842842   UINT32 r = 0;
843843   fujitsu_29f016a_device *chip;
844   if (offset >= 0 && offset < 0x200000/4)
844   if (offset < 0x200000/4)
845845   {
846846      chip = m_flash[1];
847847   }
r18268r18269
874874WRITE32_MEMBER(firebeat_state::soundflash_w)
875875{
876876   fujitsu_29f016a_device *chip;
877   if (offset >= 0 && offset < 0x200000/4)
877   if (offset < 0x200000/4)
878878   {
879879      chip = m_flash[1];
880880   }
r18268r18269
18021802
18031803READ8_MEMBER(firebeat_state::soundram_r)
18041804{
1805   if (offset >= 0 && offset < 0x200000)
1805   if (offset < 0x200000)
18061806   {
18071807      return m_flash[1]->read(offset & 0x1fffff);
18081808   }
trunk/src/mame/drivers/gstream.c
r18268r18269
237237
238238   if (ACCESSING_BITS_24_31)
239239   {
240      if (offset >= 0x000 / 4 && offset < 0x400 / 4)
240      if (offset < 0x400 / 4)
241241      {
242         m_tilemap1->mark_tile_dirty(offset - (0x000 / 4));
242         m_tilemap1->mark_tile_dirty(offset);
243243      }
244244      else if (offset >= 0x400 / 4 && offset < 0x800 / 4)
245245      {
trunk/src/mame/drivers/chihiro.c
r18268r18269
11651165   } else if ((offset >= 0x00600000/4) && (offset < 0x00601000/4)) {
11661166      ret=pcrtc[offset-0x00600000/4];
11671167      logerror("NV_2A: read PCRTC[%06X] value %08X\n",offset*4-0x00600000,ret);
1168   } else if ((offset >= 0x00000000/4) && (offset < 0x00001000/4)) {
1169      ret=pmc[offset-0x00000000/4];
1168   } else if (                             offset < 0x00001000/4) {
1169      ret=pmc[offset];
11701170      logerror("NV_2A: read PMC[%06X] value %08X\n",offset*4-0x00000000,ret);
11711171   } else if ((offset >= 0x00800000/4) && (offset < 0x00900000/4)) {
11721172      // 32 channels size 0x10000 each, 8 subchannels per channel size 0x2000 each
r18268r18269
12001200   } else if ((offset >= 0x00600000/4) && (offset < 0x00601000/4)) {
12011201      COMBINE_DATA(pcrtc+offset-0x00600000/4);
12021202      logerror("NV_2A: write PCRTC[%06X]=%08X\n",offset*4-0x00600000,data & mem_mask);
1203   } else if ((offset >= 0x00000000/4) && (offset < 0x00001000/4)) {
1204      COMBINE_DATA(pmc+offset-0x00000000/4);
1203   } else if (                             offset < 0x00001000/4) {
1204      COMBINE_DATA(pmc+offset);
12051205      logerror("NV_2A: write PMC[%06X]=%08X\n",offset*4-0x00000000,data & mem_mask);
12061206   } else if ((offset >= 0x00800000/4) && (offset < 0x00900000/4)) {
12071207      // 32 channels size 0x10000 each, 8 subchannels per channel size 0x2000 each
trunk/src/mame/drivers/megaplay.c
r18268r18269
430430   UINT8* bank = state->memregion("mtbios")->base();
431431   UINT32 fulladdress = state->m_mp_bios_bank_addr + offset;
432432
433   if ((fulladdress >= 0x000000) && (fulladdress <= 0x3fffff)) // ROM Addresses
433   if (fulladdress <= 0x3fffff) // ROM Addresses
434434   {
435435      if (state->m_bios_mode & MP_ROM)
436436      {
r18268r18269
470470   mplay_state *state = space.machine().driver_data<mplay_state>();
471471   UINT32 fulladdress = state->m_mp_bios_bank_addr + offset;
472472
473   if ((fulladdress >= 0x000000) && (fulladdress <= 0x3fffff)) // ROM / Megaplay Custom Addresses
473   if (fulladdress <= 0x3fffff) // ROM / Megaplay Custom Addresses
474474   {
475475      if (offset <= 0x1fff && (state->m_bios_width & 0x08))
476476      {
trunk/src/mame/drivers/segas16a.c
r18268r18269
585585   {
586586      case 0:
587587         // access watchdog? (unsure about this one)
588         if (offset >= 0x0000 && offset < 0x3fff)
588         if (                         offset < 0x3fff)
589589            return watchdog_reset_r(space, 0);
590590
591591         // access main work RAM

Previous 199869 Revisions Next


© 1997-2024 The MAME Team