Previous 15994 Revisions Next

r15060 Sunday 29th April, 2012 at 20:26:52 UTC by Wilbert Pol
machine/gb.c: Make the bank mask calculation a bit less unclear to read (nw)
[src/mess/machine]gb.c

src/mess/machine/gb.c
r15059r15060
22252225      state->m_ROMMask = 0;
22262226   else
22272227   {
2228      for (I = 1; I < state->m_ROMBanks; I <<= 1) ;
2229         state->m_ROMMask = I - 1;
2228      for (I = 1; I < state->m_ROMBanks; I <<= 1)
2229      {
2230      }
2231      state->m_ROMMask = I - 1;
22302232   }
22312233
22322234   state->m_MBCType = MBC_MEGADUCK;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team