home *** CD-ROM | disk | FTP | other *** search
/ Dream 55 / Amiga_Dream_55.iso / RISCOS / MAGAZINE / NEWS / 3DENGI.ZIP / 3DEngine / s / smull < prev   
Text File  |  1998-07-24  |  372b  |  16 lines

  1.  
  2.         AREA |C$$code|, CODE, READONLY
  3. |x$codeseg|
  4.  
  5.         EXPORT  asm_fx_AccurateMul
  6.         EXPORT    HackDiv
  7. asm_fx_AccurateMul
  8.  
  9.         SMULL    a3,a4,a1,a2                ; destlo,desthi, src1,src2
  10.         MOV      a3,a3,LSR#16               ; Remove 16 bits accuracy
  11.         ORR      a1,a3,a4,LSL#16            ; ditto and result
  12.  
  13.         MOVS     pc,lr
  14.  
  15.         END
  16.