Previous 15994 Revisions Next

r9840 Wednesday 29th December, 2010 at 19:52:27 UTC by Tim Schuerewegen
[GBA] Added a workaround for the unreliable ATTOTIME_IN_HZ macro. This fixes the hang/crash problems with "Gunstar Super Heroes", "bit Generations" and maybe others too.
[docs]messnew.txt
[src/mess/drivers]gba.c

src/mess/drivers/gba.c
r9839r9840
4040   }
4141}
4242
43#define GBA_ATTOTIME_NORMALIZE(a)   do { while ((a).attoseconds >= ATTOSECONDS_PER_SECOND) { (a).seconds++; (a).attoseconds -= ATTOSECONDS_PER_SECOND; } } while (0)
44
4345static const UINT32 timer_clks[4] = { 16777216, 16777216/64, 16777216/256, 16777216/1024 };
4446
4547static void gba_machine_stop(running_machine &machine)
r9839r9840
16521654               // enable the timer
16531655               if( !(data & 0x40000) ) // if we're not in Count-Up mode
16541656               {
1655                  timer_adjust_periodic(state->tmr_timer[offset], ATTOTIME_IN_HZ(final), offset, ATTOTIME_IN_HZ(final));
1657                  attotime time = ATTOTIME_IN_HZ(final);
1658                  GBA_ATTOTIME_NORMALIZE(time);
1659                  timer_adjust_periodic(state->tmr_timer[offset], time, offset, time);
16561660               }
16571661            }
16581662         }
docs/messnew.txt
r9839r9840
7878
7979- [CHANNELF/LYNX/SPECIAL/SVISION/WSWAN] Tokenized audio state.  [Atari Ace]
8080
81- [GBA] Added a workaround for the unreliable ATTOTIME_IN_HZ macro. This fixes the hang/crash problems with "Gunstar Super Heroes", "bit Generations" and maybe others too. [Tim Schuerewegen]
82
8183- [GENESIS] Added support for several genesis PCB carts [El Barto]
8284  Updated softlist to use PCB's
8385  Added J-Cart player 3 and 4 support

Previous 15994 Revisions Next


© 1998-2018 The MESS Team