home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
BURKS
/
SOFTWARE
/
LIBS
/
PMC101.ZIP
/
LIBSRC.ZIP
/
STRREV.ASM
(
.txt
)
< prev
next >
Wrap
Assembly Source File
|
1994-06-14
|
616b
|
43 lines
.386p
locals
public STRREV
_TEXT segment byte public use32 'CODE'
assume cs:_TEXT
STRREV:
push edi
cld
mov edi,[esp+4+4+00h]
mov edx,edi
or ecx,-1
xor al,al
repne scasb
not ecx
dec ecx
sub edi,2
mov eax,edx
shr ecx,1
jz short @@00
push eax
@@00l:
mov al,[edx]
xchg al,[edi]
mov [edx],al
inc edx
dec edi
loop @@00l
pop eax
@@00:
pop edi
ret 04h
_TEXT ends
end