home *** CD-ROM | disk | FTP | other *** search
- Path: news.eunet.fi!fipnet!kone!jsaarinen
- Newsgroups: comp.sys.amiga.programmer
- X-NewsReader: IntuiNews 1.2b (31.7.94)
- References: <4e882m$k7u@sunsystem5.informatik.tu-muenchen.de> <1234.6598T1186T2211@ifi.uio.no>
- From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
- Date: Tue, 30 Jan 96 20:30:07 UT
- Comments: Illegal date header - new date added by quicknews
- X-Original-Date: Tue, 30 Jan 96 17:54:18
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: binary
- Subject: Re: PPC compilers
- Message-ID: <38232226@kone.fipnet.fi>
-
-
- > >|> Using
- > >|> sub.w dx,dx
- > >|>
- > >|> instead of
- > >|>
- > >|> moveq #0,d0
- > >|> add.l d1,d0
- >
- > >what about cmp.x dx,dx
- > >won't trash dx ;) the aim was to get X flag 0 right ?
- >
- > Yes, the aim was to get X flag 0 right!
-
- Not zero, but to the correct value (0 or 1) depending on the
- adder! Because addx decimals "come one loop after".
-
- > No they dont, a typical tmap loop looks like this:
- >
- > TmapFill: MACRO
- > move.w a4,d5 ;2 cycles
- > move.b d4,d5 ;2 cycles
- > move.l d5,a5 ;2 cycles
- >
- > move.b (a5),(a1)+ ;7 cycles
- >
- > addx.l d2,d4 ;2 cycles
- > adda.l d3,a4 ;2 cycles
- >
- > ENDM
-
- "Adda.l an,a4" should be one cycle faster on the 040. Dont
- know about the 060.
-
- -- _
- a Stellar programmer _ //
- "Amiga - back for the future" \X/
-