src/mess/video/m6847.c
| r1294 | r1295 | |
| 1463 | 1463 | scanline_time = timer_timeelapsed(m6847->hs_rise_timer); |
| 1464 | 1464 | if (scanline_time.seconds != 0) |
| 1465 | 1465 | return 0; |
| 1466 | | assert(scanline_time.subseconds < m6847->scanline_period); |
| 1466 | assert(attotime_to_attoseconds(scanline_time) < m6847->scanline_period); |
| 1467 | 1467 | |
| 1468 | | if (scanline_time.subseconds < (m6847->clock_period * 42)) |
| 1468 | if (attotime_to_attoseconds(scanline_time) < (m6847->clock_period * 42)) |
| 1469 | 1469 | { |
| 1470 | 1470 | /* hsync */ |
| 1471 | 1471 | result = 0; |
| 1472 | 1472 | } |
| 1473 | | else if (scanline_time.subseconds < (m6847->clock_period * 95 / 2)) |
| 1473 | else if (attotime_to_attoseconds(scanline_time) < (m6847->clock_period * 95 / 2)) |
| 1474 | 1474 | { |
| 1475 | 1475 | /* left border */ |
| 1476 | 1476 | result = 0; |
| 1477 | 1477 | } |
| 1478 | | else if (scanline_time.subseconds < (m6847->clock_period * 351 / 2)) |
| 1478 | else if (attotime_to_attoseconds(scanline_time) < (m6847->clock_period * 351 / 2)) |
| 1479 | 1479 | { |
| 1480 | 1480 | /* body */ |
| 1481 | | result = (scanline_time.subseconds - (m6847->clock_period * 95 / 2)) |
| 1481 | result = (attotime_to_attoseconds(scanline_time) - (m6847->clock_period * 95 / 2)) |
| 1482 | 1482 | / m6847->clock_period * 2; |
| 1483 | 1483 | } |
| 1484 | 1484 | else |