home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 113 / EnigmaAmiga113CD.iso / software / sviluppo / quake_src / r_miscppc.s < prev    next >
Text File  |  2000-06-17  |  2KB  |  80 lines

  1. # Copyright (C) 1996-1997 Id Software, Inc. 
  2. # This program is free software; you can redistribute it and/or 
  3. # modify it under the terms of the GNU General Public License 
  4. # as published by the Free Software Foundation; either version 2 
  5. # of the License, or (at your option) any later version. 
  6. # This program is distributed in the hope that it will be useful, 
  7. # but WITHOUT ANY WARRANTY; without even the implied warranty of 
  8. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   
  9. # See the GNU General Public License for more details. 
  10. # You should have received a copy of the GNU General Public License 
  11. # along with this program; if not, write to the Free Software 
  12. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
  13.  
  14. ##
  15. ## Quake for AMIGA
  16. ##
  17. ## d_miscPPC.s
  18. ##
  19. ## Define WOS for PowerOpen ABI, otherwise SVR4-ABI is used.
  20. ##
  21.  
  22. .set NOLR,1
  23. .include        "macrosPPC.i"
  24.  
  25. #
  26. # external references
  27. #
  28.  
  29.     xrefa    vright
  30.     xrefa    vup
  31.     xrefa    vpn
  32.  
  33.  
  34.  
  35.  
  36. ###########################################################################
  37. #
  38. #       void TransformVector (vec3_t in, vec3_t out)
  39. #
  40. ###########################################################################
  41.  
  42.     funcdef    TransformVector
  43.  
  44.     lxa     r5,vright
  45.     lfs     f1,0(r3)
  46.     lfs     f4,0(r5)
  47.     fmuls   f0,f1,f4
  48.     lfs     f2,4(r3)
  49.     lfs     f5,4(r5)
  50.     fmadds  f0,f2,f5,f0
  51.     lfs     f3,8(r3)
  52.     lfs     f6,8(r5)
  53.     fmadds  f0,f3,f6,f0
  54.     stfs    f0,0(r4)
  55.     lxa     r5,vup
  56.     lfs     f4,0(r5)
  57.     fmuls   f0,f1,f4
  58.     lfs     f5,4(r5)
  59.     fmadds  f0,f2,f5,f0
  60.     lfs     f6,8(r5)
  61.     fmadds  f0,f3,f6,f0
  62.     stfs    f0,4(r4)
  63.     lxa     r5,vpn
  64.     lfs     f4,0(r5)
  65.     fmuls   f0,f1,f4
  66.     lfs     f5,4(r5)
  67.     fmadds  f0,f2,f5,f0
  68.     lfs     f6,8(r5)
  69.     fmadds  f0,f3,f6,f0
  70.     stfs    f0,8(r4)
  71.     blr
  72.  
  73.     funcend    TransformVector
  74.