Subj : assembler To : Eddy Thilleman From : David Noon Date : Sat Apr 28 2001 12:10 pm Hi Eddy, Replying to a message of Eddy Thilleman to All: ET> function NextPos( var str1, str2: string; var start: byte ): boolean; ET> assembler; { search next occurrence of str1 in str2 } ET> Should I replace the instruction 'LES DI, START' by 'MOV EDI, START' ET> or by 'LEA EDI, START'? I see Tom has answered your initial query about assembler instructions. You might care to look in the Speedsoft run-time library (assuming you are using SpeedPascal/2 or Sibyl) for some function that already does this. Take a look at StrPos() and StrScan(), especially the first one. If you can exploit one of these it will save you a lot of redevelopment work. Regards Dave --- FleetStreet 1.25.1 * Origin: My other computer is an IBM S/390 (2:257/609.5) .