home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1392 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: TMapping again!
  5. Date: 18 Jan 1996 18:25:29 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4dm3ap$kih@maureen.teleport.com>
  8. 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> <4dg4jk$km@news.cs.tu-berlin.de> <4dhvd5$5r2@maureen.teleport.com> <4dj5gh$q5k@news.cs.tu-berlin.de>
  9. NNTP-Posting-Host: linda.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Philipp Boerker (rawneiha@w353zrz.zrz.TU-Berlin.DE) wrote:
  13. : sschaem@teleport.com (Stephan Schaem) writes:
  14.  
  15. : >: Are you missing something?
  16.  
  17. : > scaling of the index for any work on array that are not bytes...  
  18.  
  19. : There are very powerful shift and rotation ops on PPC. If you want
  20. : scaling you do something like (pseudo asm)
  21.  
  22. :  lsl.l  rsource2,rx,#2
  23. :  move.l rdest,(rsource1,rsource2)
  24.  
  25. : (remember RISC:  operation dest,source1,source2)
  26.  
  27.  Yes, I wrote some asm on mips R4000 chip.
  28.  You dont need inst like (move +)neg... sub    rd,r0,rn do the work.
  29.  
  30.  I like the ppc adr mode and inst best so far comapred to the
  31.  hp PA, and mips R.. and way above x86.
  32.  
  33. : This takes 2 cycles execution time.
  34. : Since mmu and int-unit work independently you can optimize that
  35. : down to 1 cycle by inserting some ops in between...
  36. : Is that ok for you ? ;-)
  37.  
  38.  How many int instruction can the PPC execute in 1 cycle?
  39.  2 or more?
  40.  
  41. : > For non time critical part I like/use all the 680x0 adr mode.
  42.  
  43. : I never do. Not for speed reasons. I don't even know them...
  44. : For non time critical parts on PPC you should use C.
  45.  
  46.  Well, you can use it for stuff like this:
  47.  
  48.  jump to the entry d0 in a jump table stored in element JmpTable in
  49.  structure PRG_ a4: jmp    ([PRG_JmpTable,a4,d0.w*8])
  50.  Load the address of a viewport from a4 (a4 is your scrtucture where
  51.  you store your sscreen pointer): lea    ([PRG_Screen,a4],sc_ViewPort),a0
  52.  
  53. : > pretty much what a 68000 is capable of, should be fun with a good
  54. : > macro assembler to work on that chip.
  55.  
  56. : Anything should be fun on a chip (133 Mhz 604) that is faster than the
  57. : not-yet-existing Pentium Pro 200Mhz...
  58.  
  59.  I dont get my kick with speed alone... if I need to overthink like
  60.  on a x86 its not worth my life 'time' :)
  61.  
  62.  How much for a 100mhz 604? what is its top mips rating?
  63.  
  64.  Stephan
  65.