home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / graphics / 12948 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1017 b 

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!turing!broom!patrick
  2. From: patrick@broom.turing.ac.uk (Vorgers)
  3. Newsgroups: comp.graphics
  4. Subject: Re: vga animating w/o flicker
  5. Message-ID: <1992Dec16.122025.19851@turing.ac.uk>
  6. Date: 16 Dec 92 12:20:25 GMT
  7. References: <1992Dec10.4387.20691@dosgate>
  8. Sender: patrick@broom (Vorgers)
  9. Distribution: comp
  10. Organization: The Turing Institute, Glasgow, Scotland.
  11. Lines: 24
  12.  
  13. In article <1992Dec10.4387.20691@dosgate>, danny.hawrysio@canrem.com (danny hawrysio) writes:
  14. |> 
  15. |>  Does anybody know how to eliminate flicker while animating in VGA
  16. |> modes?
  17. |> --
  18. |> Canada Remote Systems  - Toronto, Ontario
  19. |> World's Largest PCBOARD System - 416-629-7000/629-7044
  20.  
  21. You have to wait for the vertical retrace and then you can update your screen
  22. without flickering. You also have to use this when you install a new colormap.
  23.  
  24. PASCAL-ASM.
  25.  
  26. procedure waitretrace; assembler;
  27. Label wait0,wait1;
  28. asm
  29.     mov    dx,3dah
  30. wait0:    in    al,dx
  31.     test    al,8
  32.     jnz    wait0
  33. wait1:    in    al,8
  34.     test    al,8
  35.     jz    wait1
  36. end;
  37.