Bart,
This code comes from Kylix days where MidStr was slower and this assembler function did make a significant difference in copying data within strings.
Do you know if MidStr in FreePascal is improved - because then I simply continue using it and need not worry about assembler code maintenance.
In the meantime, if there are any assembler knowledge out there, please feel free to give your inputs!