| 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 |
| r9839 | r9840 | |
|---|---|---|
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | #define GBA_ATTOTIME_NORMALIZE(a) do { while ((a).attoseconds >= ATTOSECONDS_PER_SECOND) { (a).seconds++; (a).attoseconds -= ATTOSECONDS_PER_SECOND; } } while (0) | |
| 44 | ||
| 43 | 45 | static const UINT32 timer_clks[4] = { 16777216, 16777216/64, 16777216/256, 16777216/1024 }; |
| 44 | 46 | |
| 45 | 47 | static void gba_machine_stop(running_machine &machine) |
| r9839 | r9840 | |
| 1652 | 1654 | // enable the timer |
| 1653 | 1655 | if( !(data & 0x40000) ) // if we're not in Count-Up mode |
| 1654 | 1656 | { |
| 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); | |
| 1656 | 1660 | } |
| 1657 | 1661 | } |
| 1658 | 1662 | } |
| r9839 | r9840 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | - [CHANNELF/LYNX/SPECIAL/SVISION/WSWAN] Tokenized audio state. [Atari Ace] |
| 80 | 80 | |
| 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 | ||
| 81 | 83 | - [GENESIS] Added support for several genesis PCB carts [El Barto] |
| 82 | 84 | Updated softlist to use PCB's |
| 83 | 85 | Added J-Cart player 3 and 4 support |
| Previous | 15994 Revisions | Next |