| |
|
|
| CompileMarkSeparation {$cleq}
Declare s$
Cls
s$="TEST THE FASTEST XPROFAN"
print s$+"."
print rstr$(s$)+"."
Waitkey
End
proc rstr$
parameters s$
declare ss$
ss$:=s$+" "
AsmStart _rstr
Parameters addr(s$),len(s$),addr(ss$)
.data
cw dd 0
.code
mov eax,para1
mov ebx,para2
mov ecx,para3
mov cw,ebx
mov edx,0
.while edx<ebx
dec cw
push ebx
push edx
mov edx,cw
mov bl,[ecx+edx]
pop edx
mov [eax+edx],bl
pop ebx
inc edx
.endw
AsmEnd
return s$
endproc
or nichtasm: CompileMarkSeparationPRFellow-Presentation
Author: Thomas Hölzer
a String of hinten to in front sweep
Declare strbuf#
Proc ReverseString
Parameters s$
Declare l%,result$
Let l%=Len(s$)
Dim strbuf#,Add(l%,1)
String strbuf#,0=s$
Dec l%
While Gt(l%,-1)
Let result$=result$;Char$(strbuf#,l%,1)
Dec l%
Wend
Dispose strbuf#
Return result$
ENDPROC
example
Cls
Declare n&
n&=&gettickcount
ReverseString MkStr$($Syspath + $Winpath,100)
print (&gettickcount - n&) / 1000,Len(MkStr$($Syspath + $Winpath,100))
WaitInput
or of M.Dell CompileMarkSeparationsalvo, iF. |
|
|
| |
|
|
|
Michael Wodrich | |
|
| Programmieren, das spannendste Detektivspiel der Welt. | 09/24/05 ▲ |
|
|
|
|
Frank Abbing | |
|
|