delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/29/11:32:03

From: rafael AT alpha DOT coe DOT ufrj DOT br (Rafael Gustavo da Cunha Pereira Pinto)
Subject: GRX2BCC & Interrupt 33h
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp Mailing List)
Date: Fri, 29 Jul 94 9:04:41 GMT-3:00
Cc: acmq AT alpha DOT coe DOT ufrj DOT br (Antonio Carlos Moreirao de Queiroz)

   Hello people,
> 
> Hi,
> 
> I compiled with gcc a mouse driver I wrote for Borland C. The driver uses Int 33
> and some calls to Int 16 to treat keyboard events. The driver works correctly,
> in graphic mode, but the program that uses it starts drawing everything in
> black after the mouse is activated. The keyboard operation is correct. I used
> the int86 function, and tried also the _go32_..._int function, with the same
> results. I wrote another driver with mousex calls, and it works correctly, 
> although with slower response. The program uses BGI calls to draw, using the
> bcc2grx package, in a standard VGA display. Some idea?
> 
> Antonio Carlos M. de Queiroz
> 
  On my computer (a 486/33 VL-BUS, Cirrus CLD-542x video board) it worked fine,
but I was using the driver for my video board instead of the internal one. My
setting was:

set GO32=driver D:\DJGPP\DRIVERS\CLD542.GRN gw 640 gh 480 nc 256

  The "blacking" problem occured  when I changed the number of colors to 16 or
leave the nc parameter free. I didn't tryed to use the internal driver, but I 
guess it would do the same. If you have a VESA compliant 512k VGA, try:

set GO32=gw 640 gh 480 nc 256

  This should work! Why don't you try to change the BGI calls to GRX calls? 
This can make your code run even faster, and you will not have the colors
problem.

-Four questions:

  Can anyone send me a guide to the options on the GO32 variable?
  Where can I find how to capture an interruption?
  Where can I find how to use the inline assembler and gas?
  How can I do a callback function for the mouse driver, using Int 33h Func 12h?
  

       Rafael Pinto

----------------------------------------------------------------------------
Rafael Gustavo C. P. Pinto            | Phone: 55-21-598-2454
Software Engineer - CEPEL             | Fax:   55-21-260-1340
Electric Power Research Center        | 
P.O. Box 2754                         | E-Mail:rafael AT acsi DOT cepel DOT br
Rio de Janeiro, RJ 20.001 - Brasil    |        rafael AT coe DOT ufrj DOT br
----------------------------------------------------------------------------



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019