src/mess/video/m6847.c
| r5974 | r5975 | |
| 1229 | 1229 | /* has the border color changed? */ |
| 1230 | 1230 | attrs = update_attributes(mc6847); |
| 1231 | 1231 | |
| 1232 | | if (attrs != mc6847->attrs[scanline]) |
| 1232 | /* commenting out cause it breaks the coco3 border, |
| 1233 | * the whole 'attr' handling needs to be rewritten anyway |
| 1234 | if (attrs != mc6847->attrs[scanline]) */ |
| 1233 | 1235 | { |
| 1234 | 1236 | mc6847->dirty = TRUE; |
| 1235 | 1237 | mc6847->attrs[scanline] = attrs; |
| r5974 | r5975 | |
| 1295 | 1297 | if (LOG_HS) |
| 1296 | 1298 | logerror("hs_fall(): time=%s\n", attotime_string(timer_get_time(machine), ATTOTIME_STRING_PRECISION)); |
| 1297 | 1299 | |
| 1298 | | mc6847->hs = CLEAR_LINE; |
| 1299 | | devcb_call_write_line(&mc6847->out_hs_func, CLEAR_LINE); |
| 1300 | mc6847->hs = ASSERT_LINE; |
| 1301 | devcb_call_write_line(&mc6847->out_hs_func, mc6847->hs); |
| 1300 | 1302 | } |
| 1301 | 1303 | |
| 1302 | 1304 | static TIMER_CALLBACK( hs_rise ) |
| r5974 | r5975 | |
| 1311 | 1313 | timer_adjust_oneshot(mc6847->hs_fall_timer, |
| 1312 | 1314 | attotime_make(0, mc6847->horizontal_sync_period), 0); |
| 1313 | 1315 | |
| 1314 | | mc6847->hs = ASSERT_LINE; |
| 1315 | | devcb_call_write_line(&mc6847->out_hs_func, ASSERT_LINE); |
| 1316 | mc6847->hs = CLEAR_LINE; |
| 1317 | devcb_call_write_line(&mc6847->out_hs_func, mc6847->hs); |
| 1316 | 1318 | |
| 1317 | 1319 | prepare_scanline(machine, mc6847, 0); |
| 1318 | 1320 | } |
| r5974 | r5975 | |
| 1776 | 1778 | assert(device->static_config != NULL); |
| 1777 | 1779 | assert(device->inline_config != NULL); |
| 1778 | 1780 | |
| 1779 | | |
| 1780 | | |
| 1781 | 1781 | /* identify proper M6847 variant */ |
| 1782 | 1782 | assert(cfg->type < ARRAY_LENGTH(variants)); |
| 1783 | 1783 | v = &variants[cfg->type]; |
| r5974 | r5975 | |
| 1914 | 1914 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1915 | 1915 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(mc6847_state); break; |
| 1916 | 1916 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = sizeof(mc6847_config); break; |
| 1917 | | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_OTHER; break; |
| 1917 | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_VIDEO; break; |
| 1918 | 1918 | |
| 1919 | 1919 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1920 | 1920 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(mc6847); break; |