From 5afe1f1a25693b3fde210b5453e4fe374f1b9f30 Mon Sep 17 00:00:00 2001 From: joevt Date: Mon, 29 Jan 2024 17:30:17 -0800 Subject: [PATCH] control: MISC_ENABLES is a 12 bit register. --- devices/video/control.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devices/video/control.h b/devices/video/control.h index 5826ea8..2d428ee 100644 --- a/devices/video/control.h +++ b/devices/video/control.h @@ -80,6 +80,8 @@ enum { enum { SCAN_CONTROL = 1 << 0, // 0 - interlaced, 1 - progressive FB_ENDIAN_LITTLE = 1 << 1, // framebuffer endianness: 0 - big, 1 - little +// ? = 1 << 4, +// ? = 1 << 5, VRAM_WIDE_MODE = 1 << 6, // VRAM bus width: 1 - 128bit, 0 - 64bit BLANK_DISABLE = 1 << 11, // 0 - enable blanking, 1 - disable it }; @@ -153,7 +155,7 @@ private: int strobe_counter = 0; uint8_t num_banks = 0; uint8_t cur_mon_id = 0; - uint8_t enables = 0; + uint16_t enables = 0; uint8_t int_enable = 0; uint8_t int_status = 0; uint8_t last_int_status = -1;