home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18296 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  2.4 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!funic!sauna.cs.hut.fi!news.cs.hut.fi!s37732v
  2. From: s37732v@snakemail.hut.fi (Markus Juhani Aalto)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Hardware bashing demo takes an OS friendly turn.
  5. Date: 07 Jan 93 17:03:55 GMT
  6. Organization: Helsinki University of Technology, Finland
  7. Lines: 46
  8. Distribution: inet
  9. Message-ID: <S37732V.93Jan7190355@lk-hp-16.hut.fi>
  10. References: <1993Jan7.113238.1139@imada.ou.dk>
  11. NNTP-Posting-Host: lk-hp-16.hut.fi
  12. In-reply-to: breese@monet.imada.ou.dk's message of Thu, 7 Jan 1993 11:32:38 GMT
  13.  
  14. In article <1993Jan7.113238.1139@imada.ou.dk> breese@monet.imada.ou.dk (Bjoern Reese) writes:
  15.  
  16.  
  17.  [Lot of text deleted here (code too).]
  18.  
  19.    I had to give up using WaitBlit() in preference of testing the
  20.    BBUSY bit in the dmaconr hardware register by myself. Using
  21.    WaitBlit() increased the execution time about 1/5 of a frame
  22.    (which I could afford), but as I depended on the preservation
  23.    of all data registers and most address registers I had to dump
  24.    the scratch registers on the stack, which increased execution
  25.    time about 1/2 frame (and that I couldn't afford).
  26.  
  27. Includes & Autodocs says that WaitBlit() does not use any CPU registers.
  28. So this would be enough. 
  29.  
  30.    move.l a6,-(a7)
  31.    move.l GfxBase(pc),a6
  32.    jsr _LVOWaitBlit(a6)
  33.    move.l (a7)+,a6
  34.  
  35. And if you have GfxBase already in a6 then you could just call WaitBlit.
  36.  
  37. Here is a clip from RKM: I & A / graphics.library / WaitBlit
  38.  
  39. RESULT
  40.     Your program waits until the blitter is finished.
  41.     This routine does not use any the CPU registers.  
  42.                                     ^^^^^^^^ Seems to be a typo in RKM.
  43.           d0/d1/a0/a1 are preserved by this routine.
  44.     It may change the condition codes though.
  45.  
  46.  
  47. >   Bjoern Reese                   |     Email: breese@imada.ou.dk
  48. >   Odense University, Denmark     |     Voice: +45 65 932 182 (private)
  49. --
  50.  
  51.  
  52. **************************************************************************
  53. *         Markus Aalto              | Helsinki University of Technology  *
  54. *                                   |                                    *
  55. *  EMail: s37732v@vipunen.hut.fi    | Faculty of Electric Engineering    *
  56. *  Fax:   358-0-8746991 (Sometimes) |                                    *
  57. *                                   | Undergraduate in Computer Science  *
  58. **************************************************************************
  59.         
  60.