fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

video/cga: Make the unused status register bits configurable

+7 -4
+7 -4
src/devices/video/cga.c
··· 5 5 /***************************************************************************** 6 6 * File name: src/devices/video/cga.c * 7 7 * Created: 2003-04-18 by Hampa Hug <hampa@hampa.ch> * 8 - * Copyright: (C) 2003-2022 Hampa Hug <hampa@hampa.ch> * 8 + * Copyright: (C) 2003-2023 Hampa Hug <hampa@hampa.ch> * 9 9 *****************************************************************************/ 10 10 11 11 /***************************************************************************** ··· 1275 1275 video_t *cga_new_ini (ini_sct_t *sct) 1276 1276 { 1277 1277 unsigned long io, addr; 1278 - unsigned blink, font; 1278 + unsigned blink, font, status; 1279 1279 cga_t *cga; 1280 1280 1281 1281 ini_get_uint32 (sct, "io", &io, 0x3d0); 1282 1282 ini_get_uint32 (sct, "address", &addr, 0xb8000); 1283 1283 ini_get_uint16 (sct, "blink", &blink, 16); 1284 1284 ini_get_uint16 (sct, "font", &font, 0); 1285 + ini_get_uint16 (sct, "status", &status, 0xff); 1285 1286 1286 1287 pce_log_tag (MSG_INF, 1287 - "VIDEO:", "CGA io=0x%04lx addr=0x%05lx font=%u blink=%u\n", 1288 - io, addr, font, blink 1288 + "VIDEO:", "CGA io=0x%04lx addr=0x%05lx font=%u blink=%u status=0x%02x\n", 1289 + io, addr, font, blink, status 1289 1290 ); 1290 1291 1291 1292 if ((cga = cga_new (io, addr)) == NULL) { ··· 1294 1295 1295 1296 cga_set_blink_rate (cga, blink, 1); 1296 1297 cga_set_font (cga, font); 1298 + 1299 + cga->reg[CGA_STATUS] = status; 1297 1300 1298 1301 return (&cga->video); 1299 1302 }