home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13937 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.9 KB

  1. Xref: sparky comp.sys.mac.programmer:13937 comp.sys.mac.system:10931
  2. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!actrix!Bruce.Hoult
  3. Newsgroups: comp.sys.mac.programmer,comp.sys.mac.system
  4. Subject: Re: VBL tasks on Quadra video, SlotVInstall
  5. Message-ID: <1992Aug13.134755.11193@actrix.gen.nz>
  6. From: Bruce.Hoult@bbs.actrix.gen.nz
  7. Date: Thu, 13 Aug 1992 13:47:55 GMT
  8. Sender: Bruce.Hoult@actrix.gen.nz (Bruce Hoult)
  9. References: <1992Aug12.195612.24140@galileo.cc.rochester.edu>
  10. Organization: Actrix Information Exchange
  11. Lines: 31
  12.  
  13. In article <1992Aug12.195612.24140@galileo.cc.rochester.edu> haake@cvs.rochester.edu (Bill Haake) writes:
  14. > We need to get a vertical blanking interrupt from the internal video on
  15. > a Quadra 700 (ultimately a 950 also). According to the address map in Macintosh 
  16. > Quadra 700 Developer Note  (Chapter 1 pg 11), the address space for the
  17. > internal video is the slot 9 space. We assummed that this meant we could 
  18. > install a VBL task with SlotVInstall passing slot 9 as theSlot. This doesn't
  19. > work, the call is accepted, as if the task is installed, but no 
  20. > interrupts are generated. The code works fine on a IIfx with a 8*24 board in
  21. > slot 9, the problem appears to be peculiar to the Quadra's internal video.
  22. > Can anyone tell us if it is possible to install
  23. > a VBL task on the Quadra internal video and how to do it?
  24.  
  25.  
  26. This seems to work fine on my Q700 (and everything else I've tried it on):
  27.  
  28. TYPE
  29.   devTbl = ARRAY[0..128] OF AuxDCEHandle;
  30.   devTblPtr = ^devTbl;
  31.   devTblPtrPtr = ^devTblPtr;
  32.  
  33. {find out which nuBus slot the main screen card is in}
  34. slotNum := devTblPtrPtr($11C)^^[-1 - GetMainDevice^^.gdRefNum]^^.dctlSlot;
  35.  
  36.  
  37. -- Bruce
  38. -- 
  39. Bruce.Hoult@bbs.actrix.gen.nz   Twisted pair: +64 4 477 2116
  40. BIX: brucehoult                 Last Resort:  PO Box 4145 Wellington, NZ
  41. "Cray's producing a 500 MIPS personal computer with 256MB RAM and 8 GB
  42. hard disk that fits in your pocket!"   "Great!  Is it PC compatible?"
  43.