src/emu/cpu/lr35902/lr35902.c
| r5734 | r5735 | |
| 77 | 77 | int gb_speed_change_pending; |
| 78 | 78 | int enable; |
| 79 | 79 | int doHALTbug; |
| 80 | | int haltIFstatus; |
| 81 | 80 | UINT8 features; |
| 82 | 81 | const lr35902_cpu_core *config; |
| 83 | 82 | } lr35902_16BitRegs; |
| r5734 | r5735 | |
| 272 | 271 | if ( cpustate->w.features & LR35902_FEATURE_HALT_BUG ) { |
| 273 | 272 | if ( ! cpustate->w.enable & IME ) { |
| 274 | 273 | /* Old cpu core (dmg/mgb/sgb) */ |
| 275 | | /* check if the HALT bug should be performed */ |
| 276 | | if ( cpustate->w.haltIFstatus ) { |
| 277 | | cpustate->w.doHALTbug = 1; |
| 278 | | } |
| 274 | cpustate->w.doHALTbug = 1; |
| 279 | 275 | } |
| 280 | 276 | } else { |
| 281 | 277 | /* New cpu core (cgb/agb/ags) */ |