home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7040 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: comp.vuw.ac.nz!HERMES!maths!peterm
  3. From: peterm@maths.grace.cri.nz (Peter McGavin)
  4. Subject: Re: AddIntServer + VERTB strangeness
  5. Message-ID: <PETERM.96Apr7121414@tui.maths.irl.cri.nz>
  6. Date: 07 Apr 1996 00:14:14 GMT
  7. References: <199604021335.NAA17260@mailhost.unibol.com>
  8. Organization: Industrial Research Ltd
  9. In-reply-to: John Girvin's message of Tue, 2 Apr 1996 13:35:42 GMT
  10.  
  11. John Girvin <jgirvin@bfs.unibol.com> writes:
  12. >On 31 Mar 1996 22:14:37 GMT, peterm@maths.grace.cri.nz (Peter McGavin)wrote:
  13. >:>Use
  14. >:>high-level OS calls for everything not exclusively allocated at the
  15. >:>lowest level.
  16. >
  17. >Do you mean something like "use graphics.library calls if you dont
  18. >OwnBlitter()" ?
  19.  
  20. Um, I was trying to get across that there is no need to take over the
  21. -entire- OS for hardware banging.  Just allocate the component(s) we
  22. need for hardware banging and continue using high-level OS calls for
  23. other things.  For example, if we need to bang custom gfx then we can
  24. still use the OS to access the keyboard or disk or network or
  25. whatever.
  26.  
  27. >This could be a little dangerous since you dont know
  28. >what hardware the high level calls might use.  You could end up with
  29. >registers being not what you expect, interrupts you dont expect, OS 
  30. >lockups waiting for you to free hardware (OK, *stupid* OS programmer
  31. >required for that bug ;) etc.
  32.  
  33. High-level OS calls should internally use the same hardware allocation
  34. mechanisms as our own program, so there should be no conflicts.  For
  35. example, a high-level graphics.library function might call
  36. OwnBlitter() and WaitBlit() before it bangs the blitter, just as we
  37. could in our own program.
  38. -- 
  39. Peter McGavin.   (p.mcgavin@irl.cri.nz)
  40.  
  41.