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