Previous 199869 Revisions Next

r18267 Wednesday 3rd October, 2012 at 15:57:20 UTC by Oliver Stöneberg
removed some expressions which are always true (no whatsnew)
[src/emu]sound.c
[src/emu/cpu]drcbex64.h drcbex86.h
[src/lib/util]cdrom.c
[src/mess/video]thomson.c

trunk/src/emu/cpu/drcbex86.h
r18266r18267
111111      // getters
112112      be_parameter_type type() const { return m_type; }
113113      UINT64 immediate() const { assert(m_type == PTYPE_IMMEDIATE); return m_value; }
114      int ireg() const { assert(m_type == PTYPE_INT_REGISTER); assert(m_value >= 0 && m_value < x86emit::REG_MAX); return m_value; }
115      int freg() const { assert(m_type == PTYPE_FLOAT_REGISTER); assert(m_value >= 0 && m_value < x86emit::REG_MAX); return m_value; }
116      int vreg() const { assert(m_type == PTYPE_VECTOR_REGISTER); assert(m_value >= 0 && m_value < x86emit::REG_MAX); return m_value; }
114      int ireg() const { assert(m_type == PTYPE_INT_REGISTER); assert(m_value < x86emit::REG_MAX); return m_value; }
115      int freg() const { assert(m_type == PTYPE_FLOAT_REGISTER); assert(m_value < x86emit::REG_MAX); return m_value; }
116      int vreg() const { assert(m_type == PTYPE_VECTOR_REGISTER); assert(m_value < x86emit::REG_MAX); return m_value; }
117117      void *memory(UINT32 offset = 0) const { assert(m_type == PTYPE_MEMORY); return reinterpret_cast<void *>(m_value + offset); }
118118
119119      // type queries
trunk/src/emu/cpu/drcbex64.h
r18266r18267
111111      // getters
112112      be_parameter_type type() const { return m_type; }
113113      UINT64 immediate() const { assert(m_type == PTYPE_IMMEDIATE); return m_value; }
114      int ireg() const { assert(m_type == PTYPE_INT_REGISTER); assert(m_value >= 0 && m_value < x64emit::REG_MAX); return m_value; }
115      int freg() const { assert(m_type == PTYPE_FLOAT_REGISTER); assert(m_value >= 0 && m_value < x64emit::REG_MAX); return m_value; }
116      int vreg() const { assert(m_type == PTYPE_VECTOR_REGISTER); assert(m_value >= 0 && m_value < x64emit::REG_MAX); return m_value; }
114      int ireg() const { assert(m_type == PTYPE_INT_REGISTER); assert(m_value < x64emit::REG_MAX); return m_value; }
115      int freg() const { assert(m_type == PTYPE_FLOAT_REGISTER); assert(m_value < x64emit::REG_MAX); return m_value; }
116      int vreg() const { assert(m_type == PTYPE_VECTOR_REGISTER); assert(m_value < x64emit::REG_MAX); return m_value; }
117117      void *memory() const { assert(m_type == PTYPE_MEMORY); return reinterpret_cast<void *>(m_value); }
118118
119119      // type queries
trunk/src/emu/sound.c
r18266r18267
667667
668668   // determine the current fraction of a sample
669669   UINT32 basefrac = (basetime - basesample * input_stream.m_attoseconds_per_sample) / ((input_stream.m_attoseconds_per_sample + FRAC_ONE - 1) >> FRAC_BITS);
670   assert(basefrac >= 0);
671670   assert(basefrac < FRAC_ONE);
672671
673672   // compute the stepping fraction
trunk/src/lib/util/cdrom.c
r18266r18267
841841   }
842842
843843   /* TODO: I don't know why sometimes the data is one endian and sometimes another */
844   if ((toc->numtrks < 0) || (toc->numtrks > CD_MAX_TRACKS))
844   if (toc->numtrks > CD_MAX_TRACKS)
845845   {
846846      toc->numtrks = FLIPENDIAN_INT32(toc->numtrks);
847847      for (i = 0; i < CD_MAX_TRACKS; i++)
trunk/src/mess/video/thomson.c
r18266r18267
12151215/* write to video memory through addresses 0x4000-0x5fff */
12161216WRITE8_HANDLER ( to7_vram_w )
12171217{
1218   assert( offset >= 0 && offset < 0x2000 );
1218   assert( offset < 0x2000 );
12191219   /* force two topmost color bits to 1 */
12201220   if ( thom_mode_point )
12211221      data |= 0xc0;
r18266r18267
12541254   or 0x0000-0x1fff (MO) */
12551255WRITE8_HANDLER ( to770_vram_w )
12561256{
1257   assert( offset >= 0 && offset < 0x2000 );
1257   assert( offset < 0x2000 );
12581258   if ( thom_vram[ offset + thom_mode_point ] == data )
12591259      return;
12601260   thom_vram[ offset + thom_mode_point ] = data;
r18266r18267
12741274WRITE8_HANDLER ( to8_sys_lo_w )
12751275{
12761276   UINT8* dst = thom_vram + offset + 0x6000;
1277   assert( offset >= 0 && offset < 0x2000 );
1277   assert( offset < 0x2000 );
12781278   if ( *dst == data )
12791279      return;
12801280   *dst = data;
r18266r18267
12871287WRITE8_HANDLER ( to8_sys_hi_w )
12881288{
12891289   UINT8* dst = thom_vram + offset + 0x4000;
1290   assert( offset >= 0 && offset < 0x2000 );
1290   assert( offset < 0x2000 );
12911291   if ( *dst == data ) return;
12921292   *dst = data;
12931293   /* dirty whole scanline */
r18266r18267
13011301WRITE8_HANDLER ( to8_data_lo_w )
13021302{
13031303   UINT8* dst = thom_vram + offset + 0x4000 * to8_data_vpage + 0x2000;
1304   assert( offset >= 0 && offset < 0x2000 );
1304   assert( offset < 0x2000 );
13051305   if ( *dst == data )
13061306      return;
13071307   *dst = data;
r18266r18267
13161316WRITE8_HANDLER ( to8_data_hi_w )
13171317{
13181318   UINT8* dst = thom_vram + offset + 0x4000 * to8_data_vpage;
1319   assert( offset >= 0 && offset < 0x2000 );
1319   assert( offset < 0x2000 );
13201320   if ( *dst == data )
13211321      return;
13221322   *dst = data;
r18266r18267
13321332WRITE8_HANDLER ( to8_vcart_w )
13331333{
13341334   UINT8* dst = thom_vram + offset + 0x4000 * to8_cart_vpage;
1335   assert( offset>=0 && offset < 0x4000 );
1335   assert( offset < 0x4000 );
13361336   if ( *dst == data )
13371337      return;
13381338   *dst = data;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team