Previous 15994 Revisions Next

r12214 Wednesday 13th July, 2011 at 07:18:25 UTC by Firewave
fixed more clang warnings in MESS code (no whatsnew)
[src/mess/drivers]atm.c pc8801.c pc9801.c pentagon.c scorpion.c x1.c
[src/mess/machine]990_hd.c 990_tap.c bbc.c coco.c dgn_beta.c psxcddrv.c thomflop.c

src/mess/machine/dgn_beta.c
r12213r12214
12891289   if ((oprom[0] == 0x10) && (oprom[1] == 0x3F))
12901290   {
12911291      call = oprom[2];
1292      if ((call >= 0) && (call < ARRAY_LENGTH(os9syscalls)) && os9syscalls[call])
1292      if ((call < ARRAY_LENGTH(os9syscalls)) && os9syscalls[call])
12931293      {
12941294         sprintf(buffer, "OS9   %s", os9syscalls[call]);
12951295         result = 3;
src/mess/machine/coco.c
r12213r12214
32153215   if ((oprom[0] == 0x10) && (oprom[1] == 0x3F))
32163216   {
32173217      call = oprom[2];
3218      if ((call >= 0) && (call < ARRAY_LENGTH(os9syscalls)) && os9syscalls[call])
3218      if ((call < ARRAY_LENGTH(os9syscalls)) && os9syscalls[call])
32193219      {
32203220         sprintf(buffer, "OS9   %s", os9syscalls[call]);
32213221         result = 3;
src/mess/machine/990_hd.c
r12213r12214
10031003*/
10041004READ16_HANDLER(ti990_hdc_r)
10051005{
1006   if ((offset >= 0) && (offset < 8))
1006   if (offset < 8)
10071007      return hdc.w[offset];
10081008   else
10091009      return 0;
r12213r12214
10141014*/
10151015WRITE16_HANDLER(ti990_hdc_w)
10161016{
1017   if ((offset >= 0) && (offset < 8))
1017   if (offset < 8)
10181018   {
10191019      /* write protect if a command is in progress */
10201020      if (hdc.w[7] & w7_idle)
src/mess/machine/thomflop.c
r12213r12214
17101710
17111711static READ8_HANDLER ( to7_network_r )
17121712{
1713   if ( offset >= 0 && offset < 4 )
1713   if ( offset < 4 )
17141714      return mc6854_r( space->machine().device("mc6854"), offset );
17151715
17161716   if ( offset == 8 )
r12213r12214
17291729
17301730static WRITE8_HANDLER ( to7_network_w )
17311731{
1732   if ( offset >= 0 && offset < 4 )
1732   if ( offset < 4 )
17331733      mc6854_w( space->machine().device("mc6854"), offset, data );
17341734   else
17351735   {
src/mess/machine/psxcddrv.c
r12213r12214
404404   printf("mess: read %d sectors from %d (secsize %d)\n",numsec,startsec,secsize);
405405   #endif
406406
407   if ((startsec>=0)) // && ((int)startsec<num_sectors))
407   if (1) // && ((int)startsec<num_sectors))
408408   {
409409//      fin->seek((INT64)startsec*(INT64)bin_sector_size);
410410
src/mess/machine/990_tap.c
r12213r12214
961961READ16_DEVICE_HANDLER(ti990_tpc_r)
962962{
963963   tap_990_t *tpc = get_safe_token(device);
964   if ((offset >= 0) && (offset < 8))
964   if (offset < 8)
965965      return tpc->w[offset];
966966   else
967967      return 0;
r12213r12214
973973WRITE16_DEVICE_HANDLER(ti990_tpc_w)
974974{
975975   tap_990_t *tpc = get_safe_token(device);
976   if ((offset >= 0) && (offset < 8))
976   if (offset < 8)
977977   {
978978      /* write protect if a command is in progress */
979979      if (tpc->w[7] & w7_idle)
src/mess/machine/bbc.c
r12213r12214
556556//      return space->machine().region("user1")->base()[offset+0x43c00];
557557//  };
558558
559   if ((offset>=0x000) && (offset<=0x0ff)) /* FRED */
559   if (offset<=0x0ff) /* FRED */
560560   {
561561      return 0xff;
562562   };
src/mess/drivers/pc9801.c
r12213r12214
12541254   if(state->m_gate_a20 == 0)
12551255      offset &= 0xfffff;
12561256
1257   if      (offset >= 0x00000000 && offset <= 0x0009ffff)                   { return pc9801rs_wram_r(space,offset);               }
1257   if      (                     offset <= 0x0009ffff)                   { return pc9801rs_wram_r(space,offset);               }
12581258   else if(offset >= 0x000a0000 && offset <= 0x000a3fff)                   { return pc9801_tvram_r(space,offset-0xa0000);        }
12591259   else if(offset >= 0x000a4000 && offset <= 0x000a4fff)                   { return pc9801rs_knjram_r(space,offset & 0xfff);     }
12601260   else if(offset >= 0x000a8000 && offset <= 0x000bffff)                   { return pc9801_gvram_r(space,offset-0xa8000);        }
r12213r12214
12741274   if(state->m_gate_a20 == 0)
12751275      offset &= 0xfffff;
12761276
1277   if      (offset >= 0x00000000 && offset <= 0x0009ffff)                   { pc9801rs_wram_w(space,offset,data);                  }
1277   if      (                     offset <= 0x0009ffff)                   { pc9801rs_wram_w(space,offset,data);                  }
12781278   else if(offset >= 0x000a0000 && offset <= 0x000a3fff)                   { pc9801_tvram_w(space,offset-0xa0000,data);           }
12791279   else if(offset >= 0x000a4000 && offset <= 0x000a4fff)                   { pc9801rs_knjram_w(space,offset & 0xfff,data);        }
12801280   else if(offset >= 0x000a8000 && offset <= 0x000bffff)                   { pc9801_gvram_w(space,offset-0xa8000,data);           }
src/mess/drivers/x1.c
r12213r12214
13441344   x1_state *state = space->machine().driver_data<x1_state>();
13451345   UINT8 ex_mask;
13461346
1347   if     (offset >= 0x0000 && offset <= 0x3fff)   { ex_mask = 7; }
1347   if     (                 offset <= 0x3fff)   { ex_mask = 7; }
13481348   else if(offset >= 0x4000 && offset <= 0x7fff)   { ex_mask = 6; }
13491349   else if(offset >= 0x8000 && offset <= 0xbfff)   { ex_mask = 5; }
13501350   else                                           { ex_mask = 3; }
src/mess/drivers/scorpion.c
r12213r12214
251251      state->m_ROMSelection = 3;
252252      betadisk_enable(beta);
253253   }
254   if((address>=0x0000) && (address<=0x3fff))
254   if(address<=0x3fff)
255255   {
256256      state->m_ram_disabled_by_beta = 1;
257257      direct.explicit_configure(0x0000, 0x3fff, 0x3fff, machine.region("maincpu")->base() + 0x010000 + (state->m_ROMSelection<<14));
src/mess/drivers/atm.c
r12213r12214
4141         betadisk_enable(beta);
4242
4343   }
44   if((address>=0x0000) && (address<=0x3fff))
44   if(address<=0x3fff)
4545   {
4646      if (state->m_ROMSelection == 3) {
4747         direct.explicit_configure(0x0000, 0x3fff, 0x3fff, machine.region("maincpu")->base() + 0x018000);
src/mess/drivers/pentagon.c
r12213r12214
3030         betadisk_enable(beta);
3131
3232   }
33   if((address>=0x0000) && (address<=0x3fff))
33   if(address<=0x3fff)
3434   {
3535      if (state->m_ROMSelection == 3) {
3636         if (beta->started()) {
src/mess/drivers/pc8801.c
r12213r12214
780780static READ8_HANDLER( pc8801_mem_r )
781781{
782782   pc8801_state *state = space->machine().driver_data<pc8801_state>();
783   if(offset >= 0x0000 && offset <= 0x7fff)
783   if(offset <= 0x7fff)
784784   {
785785      if(state->m_extram_mode & 1)
786786         return pc8801_ext_wram_r(space,offset | (state->m_extram_bank * 0x8000));
r12213r12214
849849static WRITE8_HANDLER( pc8801_mem_w )
850850{
851851   pc8801_state *state = space->machine().driver_data<pc8801_state>();
852   if(offset >= 0x0000 && offset <= 0x7fff)
852   if(offset <= 0x7fff)
853853   {
854854      if(state->m_extram_mode & 0x10)
855855         pc8801_ext_wram_w(space,offset | (state->m_extram_bank * 0x8000),data);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team