TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALL
from: BART BROERSMA
date: 1997-10-25 05:04:00
subject: ASM in D2

Hi,
None of my old assembly string handling routines (upstring, comparestring 
etc) will work under D2/W95.
As these routines are/were much faster than standard pascal/D1 routines, 
I'd like them back!
Any one know how to handle strings in an asm function under W95 ?
For example:
Function UpString(S:String):String; Assembler;
Asm
  les di,@Result  {put address of returned string in es:di}
  ....    ^^^^^^^^ wil give me a compile error: operandsize does not 
                   match (or soemthing like that...)
  ....
  ....
end;
(not even if I use ShortStrings wil it compile, if that has anything to do 
with it ...)
Thanx in advance,
Bart
--------------------------------------
Bart Broersma
broersma@knmg.nl
 * Wave Rider 1.20 [NR] *
... UNREGISTERED EVALUATION COPY
--- Wave Rider v1.20
---------------
* Origin: Aargh! BBS Amsterdam (2:280/606)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.