home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / rec / games / programm / 5514 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.1 KB

  1. Path: sparky!uunet!mcsun!sunic!chalmers.se!news.chalmers.se!pc9_b109.et.hj.se!d91-sjd
  2. From: d91-sjd@tekn.hj.se (DANIEL SJBERG)
  3. Newsgroups: rec.games.programmer
  4. Subject: Re: VGA Palette flicker
  5. Message-ID: <d91-sjd.15.727960173@tekn.hj.se>
  6. Date: 25 Jan 93 11:09:33 GMT
  7. Sender: news@news.chalmers.se
  8. Organization: H|gskolan i J|nk|ping
  9. Lines: 23
  10. Nntp-Posting-Host: pc9_b109.et.hj.se
  11.  
  12. > I've got some code for cycling the VGA palette, but I have problems with
  13. > flicker. The main problem is that I can't disable interrupts during the
  14. > "rep outsb" (did I mention I was using the 286 instructions?) because I've
  15. > flickerover the top quarter or so of the screen.
  16.  
  17. > Does anyone know a cure for this?
  18.  
  19. Which IRQ does the player use.   
  20.  
  21. When you know which IRQ you just:     Mov al,11111111b  ; Set the IRQ number 
  22.                               for the player to
  23.                               zero in al and the
  24.                               rest to 1 while you
  25.                               you're setting the
  26.                               palette
  27.                       Out 21,al
  28.                 rep   outsb
  29.                       xor al,al        ; Turn on all IRQ's
  30.                       out 21h,al
  31.  
  32. /Daniel,    Member of The Yellow Ones
  33.  
  34. E-Mail: D91-SJD@TEKN.HJ.SE
  35.