home *** CD-ROM | disk | FTP | other *** search
/ Total Destruction / Total_Destruction.iso / addons / Lccwin32.exe / Lccwin32 / lccpub / lib / src / allshl.asm < prev    next >
Encoding:
Assembly Source File  |  1997-08-21  |  329 b   |  22 lines

  1.     .file "allshl.asm"
  2.     .text
  3.     .globl    __allshl
  4. __allshl:
  5.     cmpb   $64,%cl 
  6.     jae    _$L1
  7.     cmpb   $32,%cl 
  8.     jae    _$L2
  9.     shldl  %cl,%eax,%edx 
  10.     shll   %cl,%eax 
  11.     ret     
  12. _$L2:
  13.     movl   %eax,%edx 
  14.     xorl   %eax,%eax 
  15.     andb   $31,%cl 
  16.     shll   %cl,%edx 
  17.     ret     
  18. _$L1:
  19.     xorl   %eax,%eax 
  20.     xorl   %edx,%edx 
  21.     ret     
  22.