home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Total Destruction
/
Total_Destruction.iso
/
addons
/
Lccwin32.exe
/
Lccwin32
/
lccpub
/
lib
/
src
/
allshl.asm
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Assembly Source File
|
1997-08-21
|
329 b
|
22 lines
.file "allshl.asm"
.text
.globl __allshl
__allshl:
cmpb $64,%cl
jae _$L1
cmpb $32,%cl
jae _$L2
shldl %cl,%eax,%edx
shll %cl,%eax
ret
_$L2:
movl %eax,%edx
xorl %eax,%eax
andb $31,%cl
shll %cl,%edx
ret
_$L1:
xorl %eax,%eax
xorl %edx,%edx
ret