home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4829 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.5 KB

  1. Path: sparky!uunet!mcsun!uknet!mucs!fs1.mcc.ac.uk!zlsiida
  2. From: zlsiida@fs1.mcc.ac.uk (dave budd)
  3. Newsgroups: comp.lang.pascal
  4. Subject: VGA256.BGI on Opus
  5. Message-ID: <zlsiida.78@fs1.mcc.ac.uk>
  6. Date: 12 Aug 92 15:55:09 GMT
  7. Sender: news@cs.man.ac.uk
  8. Organization: Manchester Computing Centre
  9. Lines: 30
  10. Originator: netnews@uts.mcc.ac.uk
  11.  
  12. Our Optics dept have a program they're developing to display HVC (=HLS) 
  13. colour maps, and they find:
  14.  
  15. Colours OK on non-Opus machines
  16. Colours OK on Opus machines with RIXAI8 driver (8514A emulator)
  17. Colours wrong on Opus machines with VGA256.BGI
  18.  
  19. The colours that go wrong are every 16th, starting at the 6th
  20.  
  21. Must be some kind of problem with Opus hardware/firmware?
  22.  
  23. They're setting the palette with a ruotine that looks like:
  24.  
  25. var regs:registers; begin with regs do begin
  26. AX:=$1012; BX:=0; CX:=256; ES:=Seg(P); DX:=Ofs(P); 
  27. end; Intr($10,regs); end;
  28.  
  29. P is an array[0..255] of a record type which holds 3 single byte values (r,
  30. g,b).  Should these be 16 bit values?
  31. P MUST (hah!) be filled OK or it wouldn't work on non-Opus machines, or 
  32. Opus machines with other than VGA256.BGI
  33.  
  34. More detail available if reqwuired!
  35.  
  36.  
  37. +---------------------------------------------------------------------+
  38. |  The trouble with having an open mind is that people come along and |
  39. |  put things in it.   {attribution? I nicked it from Readers Digest} |
  40. |  Dave Budd, MCC, Oxford Rd, Manchester, England   (44)061-275-6033  |
  41. +---------------------------------------------------------------------+
  42.