home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18613 < prev    next >
Encoding:
Text File  |  1992-11-18  |  2.3 KB  |  54 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!news.Vanderbilt.Edu!news
  3. From: BLOOMDA@ctrvax.vanderbilt.edu (_creative_output_)
  4. Subject: Is this a BaseAddress problem with the Quadra .?.?.?.
  5. Message-ID: <1992Nov18.232653.13027@news.vanderbilt.edu>
  6. Sender: news@news.vanderbilt.edu
  7. Nntp-Posting-Host: ctrvax.vanderbilt.edu
  8. Organization: Camp Vanderbilt Vision Research Center
  9. Date: Wed, 18 Nov 1992 23:26:53 GMT
  10. X-News-Reader: VMS NEWS 1.21
  11. Lines: 41
  12.  
  13. Hi, Gals & Guys.
  14.  
  15. I do pseudo-instantaneous presentation of visual stimuli using
  16. color table tricks.  I.E., I read a byte from video RAM, write
  17. into only the high or low 4 bits, as desired, and then write
  18. my byte back out.  Appropriately managing color tables, I can
  19. paint an image of up to 16 colors invisibly while another image
  20. of up to 16 colors is onscreen, then swap them in one VRT.
  21.  
  22. This technique broke when I tried it on a 24-bit card set to
  23. 8-bit mode.  That's when I learned about incorporating the slot
  24. number of the video card into the base address:
  25.      ( ( baseAddr >> 24 ) | something ) << 20 | baseAddr, or somesuch
  26.  
  27. One of my bosses has left town for another University.  He took his
  28. third of my funding, and now I'm part-time here, so I'm incentivized
  29. to keep supporting him through email.
  30.  
  31. He has a Quadra.
  32.  
  33. My code generates Bus Errors on his machine, during the loop which
  34. accesses video RAM.  This is _similar_ to the errors generated by
  35. my earlier failure to account for the slot number.
  36.  
  37. I have 'testing access' to a Quadra 700 here, but not 'development
  38. access'.  That means I can go and bother someone in his office for
  39. a moment to see if I got it right, and crash his machine many times.
  40.  
  41. I've gotten a hold of IM v6, the monster, and shall be perusing it
  42. tonight.  It may hold a solution.  However, I'm moved to ask you
  43. folks out there if anyone has a quick hint.  Anybody run into this
  44. difference?
  45.  
  46. (s)he who helps shall receive a brief burst of good thoughts from
  47. Music City, U.S.A. and a personal thank-you.  I'll check news and
  48. mail at 2 a.m., so listen up hard for that burst of good karma...
  49.  
  50. - Dave    =(^;|=                Dave Bloom, JSPS
  51.                     bn: bloomda@vuctrvax
  52.                     in: bloomda@ctrvax.vanderbilt.edu
  53. "Mekka Lekka Hai, Lekka Heinie Ho"
  54.