Previous 15994 Revisions Next

r15023 Tuesday 24th April, 2012 at 11:57:54 UTC by smf
fixes for compiling with MSVC.
[src/emu]devcb.h
[src/lib/formats]adam_cas.c flopimg.c pasti_dsk.c
[src/mame/drivers]cubeqst.c globalfr.c igs017.c
[src/mame/video]galaxia.c gticlub.c rdptpipe.c

src/mame/video/rdptpipe.c
r15022r15023
13721372   tbase += tile[tilenum].tmem;
13731373   UINT32 tpal   = tile[tilenum].palette;
13741374
1375   UINT32 index = (tformat << 4) | (tsize << 2) | (object.OtherModes.en_tlut << 1) | object.OtherModes.tlut_type;
1375   UINT32 index = (tformat << 4) | (tsize << 2) | ((UINT32) object.OtherModes.en_tlut << 1) | (UINT32) object.OtherModes.tlut_type;
13761376
13771377   return ((this)->*(TexelFetch[index]))(s, t, tbase, tpal, userdata);
13781378}
src/mame/video/gticlub.c
r15022r15023
1#include <float.h>
12#include "emu.h"
23#include "cpu/sharc/sharc.h"
34#include "machine/konppc.h"
r15022r15023
564565      if (color & 0xff000000)
565566      {
566567         fb[x] = color;
567         zb[x] = 0x7fffffff;      // FIXME
568         zb[x] = FLT_MAX;      // FIXME
568569      }
569570   }
570571}
r15022r15023
609610      if (color & 0xff000000)
610611      {
611612         fb[x] = color;
612         zb[x] = 0x7fffffff;      // FIXME
613         zb[x] = FLT_MAX;      // FIXME
613614      }
614615
615616      u += du;
src/mame/video/galaxia.c
r15022r15023
210210      {
211211         // NOTE: similar to zac2650.c, the sprite chip runs at a different frequency than the background generator
212212         // the exact timing ratio is unknown, so we'll have to do with guesswork
213         float s_ratio = 256.0 / 196.0;
213         float s_ratio = 256.0f / 196.0f;
214214
215215         float sx = x * s_ratio;
216216         if ((int)(sx + 0.5) > cliprect.max_x)
src/mame/drivers/igs017.c
r15022r15023
18541854   {
18551855      case 0x03:
18561856      {
1857         UINT8 a = BITSWAP8(m_prot[0], 9,9,1,9,2,5,4,7);   // 9 means 0 value
1858         UINT8 b = BITSWAP8(m_prot[1], 5,2,9,7,9,9,9,9);
1857         UINT8 a = BITSWAP8((UINT16)m_prot[0], 9,9,1,9,2,5,4,7);   // 9 means 0 value
1858         UINT8 b = BITSWAP8((UINT16)m_prot[1], 5,2,9,7,9,9,9,9);
18591859         return a | b;
18601860      }
18611861
src/mame/drivers/cubeqst.c
r15022r15023
535535   MCFG_LASERDISC_SIMUTREK_ADD("laserdisc")
536536   MCFG_LASERDISC_OVERLAY_STATIC(CUBEQST_HBLANK, CUBEQST_VCOUNT, cubeqst)
537537   MCFG_LASERDISC_OVERLAY_CLIP(0, 320-1, 0, 256-8)
538   MCFG_LASERDISC_OVERLAY_POSITION(0.002, -0.018)
539   MCFG_LASERDISC_OVERLAY_SCALE(1.0, 1.030)
538   MCFG_LASERDISC_OVERLAY_POSITION(0.002f, -0.018f)
539   MCFG_LASERDISC_OVERLAY_SCALE(1.0f, 1.030f)
540540
541541   MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc")
542542
src/mame/drivers/globalfr.c
r15022r15023
3838{
3939   globalfr_state *state = space->machine().driver_data<globalfr_state>();
4040
41   int clock = (data & 0x40);
41   bool clock = (data & 0x40) != 0;
4242   int datline = (data & 0x80);
4343
4444   //Unlike MPU4, this uses positive transitions on both lines, so this may be a similar, but not identical component
src/emu/devcb.h
r15022r15023
117117
118118// static template for a read16 stub function that calls through a given READ16_MEMBER
119119template<class _Class, UINT16 (_Class::*_Function)(address_space &, offs_t, UINT16)>
120UINT16 devcb_stub16(device_t *device, offs_t offset, UINT16 mask=0xffff)
120UINT16 devcb_stub16(device_t *device, offs_t offset, UINT16 mask)
121121{
122122   _Class *target = downcast<_Class *>(device);
123123   return (target->*_Function)(*device->machine().memory().first_space(), offset, mask);
r15022r15023
141141
142142// static template for a write16 stub function that calls through a given WRITE16_MEMBER
143143template<class _Class, void (_Class::*_Function)(address_space &, offs_t, UINT16, UINT16)>
144void devcb_stub16(device_t *device, offs_t offset, UINT16 data, UINT16 mask=0xffff)
144void devcb_stub16(device_t *device, offs_t offset, UINT16 data, UINT16 mask)
145145{
146146   _Class *target = downcast<_Class *>(device);
147147   (target->*_Function)(*device->machine().memory().first_space(), offset, data, mask);
src/lib/formats/flopimg.c
r15022r15023
11621162{
11631163   UINT32 r = 0;
11641164   for(int i=0; i<count; i++)
1165      r = (r << 1) | bit_r(buffer, offset+i);
1165      r = (r << 1) | (UINT32) bit_r(buffer, offset+i);
11661166   return r;
11671167}
11681168
src/lib/formats/adam_cas.c
r15022r15023
5858// Store byte of data
5959casserr_t coladam_put_byte(cassette_image *cass, int channel, double *time_index, int byte, int *prev_sign)
6060{
61   casserr_t err;
61   casserr_t err = CASSETTE_ERROR_SUCCESS;
6262   for (int i = 0; i < 8; i++)
6363   {
6464      if(byte & 0x80)
r15022r15023
127127   double time = 0.;
128128   int i, block, prev_sign=-1;
129129   UINT8 buffer[0x400];
130   casserr_t err;
130   casserr_t err = CASSETTE_ERROR_SUCCESS;
131131 
132132   // It would appear that data packs that originally had the type GW data layout and headers work fine when converted to type
133133   // HE. Thus we set all tapes to type HE.
r15022r15023
194194      }
195195   }
196196 
197   if (err)
198      return err;
199 
200   return CASSETTE_ERROR_SUCCESS;
197   return err;
201198}
202199 
203200 
src/lib/formats/pasti_dsk.c
r15022r15023
535535         int hpos = (i+3) % tsize;
536536         int j;
537537         bool synced = false;
538         int bcount, tend;
538         int bcount=0, tend=0;
539539         int best_bcount=0, best_j=0;
540540         for(j=0; j != obs.sector_count; j++) {
541541            match_mfm_data(obs, hpos, obs.sectors[j].id, 6, hbyte, bcount, tend, synced);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team