From a850821ecb5a01d73fbcb9e9225b6185a67586e7 Mon Sep 17 00:00:00 2001 From: Akamaki <97360908+akmed772@users.noreply.github.com> Date: Sat, 15 Feb 2025 11:29:44 +0900 Subject: [PATCH] updated comment in monitor detection (vid_svga .c) --- src/video/vid_svga.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/video/vid_svga.c b/src/video/vid_svga.c index ef6381598..5d0db103b 100644 --- a/src/video/vid_svga.c +++ b/src/video/vid_svga.c @@ -511,10 +511,12 @@ svga_in(uint16_t addr, void *priv) } else { - // The Display Adapter has own Monitor Type Detection bit in the different I/O port (I/O 3E0h, 3E1h). - // When the monitor cable is connected to the Display Adapter, this port returns the value as no cable connection. - // The Power-on Self Test of PS/55 tries detecting the monitor on the planar VGA. - // If it fails, then the POST reads the NVRAM set by the reference diskette, and sets the BIOS Data Area (Mem 487h, 489h). + /* + The IBM PS/55 Display Adapter has own Monitor Type Detection bit in the different I/O port (I/O 3E0h, 3E1h). + When the monitor cable is connected to the Display Adapter, this port returns the value as 'no cable connection'. + The POST of PS/55 has an extra code that tries detecting the monitor on the planar VGA. + If it fails, then the POST reads the NVRAM set by the reference diskette, and updates the BIOS Data Area (Mem 487h, 489h). + */ if (svga->vgapal[0].r >= 10 || svga->vgapal[0].g >= 10 || svga->vgapal[0].b >= 10) ret = 0; else