On Mon, Jul 2, 2012 at 7:22 PM, Rene Gollent <anevilyak@xxxxxxxxx> wrote: > Fair enough on the reorder, but since the rep / mov variation is > apparently out of the question, I'm not really sure as to a more > compact way to write it. Thoughts? Actually, reordering them currently isn't feasible either, since we're relying on movsb to increment the source/destination pointers. As such, if movsb doesn't come first, cmpb is looking at the byte that precedes the beginning of the source string, so if that happens to be 0 we don't copy data at all. Other suggest changes checked in though. Regards, Rene