mjg@ecsvax.UUCP (Michael Gingell) (07/08/87)
Does anyone know of a reliable method of turning off the cursor on an EGA when running in CGA emulation mode ?. With regular monochrome or color display adapters one can address the 6845 display controller thus: mov dx,3b4h ;3d4 if color mov al,0ah out dx,al ;selects register 10 of 6845 inc dx mov al,20h ;set bit 5 of register 10 out dx,al However, most EGAs do not contain a 6845 nor do they fully emulate one. Also, the BIOS and DOS do not contain any official documented method of doing this via INT calls. I seem to remember seeing this stated for a fact in Microsoft's Advanced MS-DOS book. I know you can specify an illegal location for the cursor, or specify impossible start and end cursor scan lines but what is the effect of this on an EGA ?. What I really want to do is to make the cursor invisible while still leaving it at the current location. The above method works fine on regular monochrome and color displays but will it work on EGAs ???. Any pointers would be most gratefully accepted, Mike Gingell ....decvax!mcnc!ecsvax!mjg
davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) (07/10/87)
In article <3508@ecsvax.UUCP> mjg@ecsvax.UUCP (Michael Gingell) writes: > >Does anyone know of a reliable method of turning off the cursor on >an EGA when running in CGA emulation mode ?. With regular monochrome or >color display adapters one can address the 6845 display controller thus: ... assembly code deleted ... >However, most EGAs do not contain a 6845 nor do they fully emulate one. >Also, the BIOS and DOS do not contain any official documented method of >doing this via INT calls. I seem to remember seeing this stated for a fact >in Microsoft's Advanced MS-DOS book. I know you can specify an illegal >location for the cursor, or specify impossible start and end cursor scan >lines but what is the effect of this on an EGA ?. [ the effect is that the cursor goes away, at least setting the cursor type with function 10h. ] -- bill davidsen (wedu@ge-crd.arpa) {chinet | philabs | sesimo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me