trunk/src/emu/addrmap.c
| r241414 | r241415 | |
| 540 | 540 | |
| 541 | 541 | // Remap start and end |
| 542 | 542 | |
| 543 | | int start_offset = subentry->m_addrstart / entry_bytes; |
| 544 | | int start_slot = start_offset % slot_count; |
| 543 | unsigned int start_offset = subentry->m_addrstart / entry_bytes; |
| 544 | unsigned int start_slot = start_offset % slot_count; |
| 545 | 545 | subentry->m_addrstart = entry->m_addrstart + (start_offset / slot_count) * databytes; |
| 546 | 546 | |
| 547 | 547 | // Drop the entry if it ends up outside the range |
| r241414 | r241415 | |
| 551 | 551 | continue; |
| 552 | 552 | } |
| 553 | 553 | |
| 554 | | int end_offset = subentry->m_addrend / entry_bytes; |
| 555 | | int end_slot = end_offset % slot_count; |
| 554 | unsigned int end_offset = subentry->m_addrend / entry_bytes; |
| 555 | unsigned int end_slot = end_offset % slot_count; |
| 556 | 556 | subentry->m_addrend = entry->m_addrstart + (end_offset / slot_count) * databytes + databytes - 1; |
| 557 | 557 | |
| 558 | 558 | // Clip the entry to the end of the range |