trunk/src/mame/drivers/funworld.c
r241539 | r241540 | |
6352 | 6352 | } |
6353 | 6353 | |
6354 | 6354 | j = 1; |
| 6355 | i = 0x81; |
6355 | 6356 | |
6356 | | for (i = 0x81; i < (0x81 + ARRAY_LENGTH(rcdino4_keys80));) |
| 6357 | do |
6357 | 6358 | { |
6358 | 6359 | UINT8 key; |
6359 | 6360 | |
r241539 | r241540 | |
6418 | 6419 | while (j < 0x100); |
6419 | 6420 | |
6420 | 6421 | j &= 0xff; |
6421 | | do { |
6422 | | assert((i+1 - 0x81) >= 0 && (i+1 - 0x81) < ARRAY_LENGTH(rcdino4_keys80)); |
6423 | | } while (!rcdino4_keys80[++i - 0x81]); |
6424 | 6422 | |
| 6423 | do {} while (((++i - 0x81) < ARRAY_LENGTH(rcdino4_keys80)) |
| 6424 | && !rcdino4_keys80[i - 0x81]); |
| 6425 | |
| 6426 | if ((i - 0x81) == ARRAY_LENGTH(rcdino4_keys80)) |
| 6427 | { |
| 6428 | break; |
| 6429 | } |
| 6430 | |
6425 | 6431 | if ((i == 0xa4) |
6426 | 6432 | || (i == 0xb0) |
6427 | 6433 | || (i == 0xf8) |
r241539 | r241540 | |
6430 | 6436 | j = 0; /* re-align offset after skipping some pages */ |
6431 | 6437 | } |
6432 | 6438 | } |
| 6439 | while (1); |
6433 | 6440 | } |
6434 | 6441 | |
6435 | 6442 | DRIVER_INIT_MEMBER(funworld_state, rcdinch) |