home *** CD-ROM | disk | FTP | other *** search
- Path: w255zrz.zrz.TU-Berlin.DE!rawneiha
- From: rawneiha@w255zrz.zrz.TU-Berlin.DE (Philipp Boerker)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: TMapping again!
- Date: 16 Jan 1996 12:10:28 GMT
- Organization: Technical University of Berlin, Germany
- Message-ID: <4dg4jk$km@news.cs.tu-berlin.de>
- References: <4d0ou6$835@astfgl.idb.hist.no> <Z31Wx*zA0@mkmk.in-chemnitz.de> <4d42di$9e9@maureen.teleport.com> <4d5lvi$emc@brachio.zrz.TU-Berlin.DE> <4d6v0t$3dt@maureen.teleport.com>
- NNTP-Posting-Host: w255zrz.zrz.tu-berlin.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
-
- sschaem@teleport.com (Stephan Schaem) writes:
-
- >Philipp Boerker (rawneiha@w352zrz.zrz.TU-Berlin.DE) wrote:
- >: sschaem@teleport.com (Stephan Schaem) writes:
-
- >: >Andre Weissflog (floh@mkmk.in-chemnitz.de) wrote:
- >: >: In article <4d0ou6$835@astfgl.idb.hist.no>, Lasse Staff Jensen writes:
-
- >: > I think he was mentiontioning this map code:
-
- >: > REPEAT 32
- >: >1) move.b (a0,d0.w),(a1)+
- >: >2) addx.l d1,d0
- >: > ENDR
-
- >: The example above doesn't work anyway. You always need fraction
- >: bits for both x- and y-adder.
-
- > AAAAAA..........BBBBBCCCCCCDDDDD
-
- > A = x fraction
- > B = y integer
- > C = y fraction
- > D = x integer
- > . = zero or more precision for x
-
- > as you see the example above work...
-
- Yes, I knew that one, but I never tried it because I doubt,
- that it will have the accuracy needed. Or can you correct me?
-
-
- >: Gee, how am I waiting for the 32 regs of the PPC... 8)
-
- > Well, you are trading your nice addressing mode for this,
- > no more (offset,base,offset*scale) ;) You will probably need
- > an extra register and 3 instruction to emulate this on a ppc.
-
- The PPC is fast enough to do some more ops between mem accesses
- than 68k...
-
-
- > dont know the PPC so I wont go into details :)
-
- I do. The PPC isn't as RISC as most people fear. It's true
- that there are only four address modes but they are as all
- PPC instructions very powerful:
-
- load/store register indirect
- this one allows a 16b immeadiate offset (signed)
- load/store register indirect with update
- like above, but adds the immeadiate offset to the contents of
- the "address-register"
- this allows for many other address modes like (a0)+ or -(a0)
- load/store register indirect indexed
- like move.l (a0,d0.l),d1
- load/store register indirect indexed with update
- like the last one but adds contents of "d0" to "a0"
-
- Are you missing something?
-
-
- > And not all 32 register are for you to play with ...
-
- The only registers that have restrictions are:
- r0 , not all ops work on that one
- r2 (? don't remember exactly) table of contents pointer (TOC)
- like a6 in 68k
- r3 (?) stack frame pointer
-
-
- Greets,
- Phil.
- ----------------------------
- grond/matrix
- rawneiha@sp.zrz.tu-berlin.de
- ----------------------------
-