Comments on: Inline strlen function in assembly http://writequit.org/blog/2008/06/06/inline-strlen-function-in-assembly/ Tu fui, ego eris Fri, 15 Aug 2014 11:26:27 +0000 hourly 1 http://wordpress.org/?v=4.1.5 By: Martijn http://writequit.org/blog/2008/06/06/inline-strlen-function-in-assembly/comment-page-1/#comment-438 Wed, 31 Dec 2008 08:40:04 +0000 http://writequit.org/blog/?p=185#comment-438 Hi,

Nice explanation.

May I ask why you are not clearing or setting the direction flag (cld/std)? If DF is set (=1) I believe that the scasb instruction will decrease edi instead of increase.

I haven’t done anything with assembly since long so I could be easily mistaken :-)

Best Regards Martijn

]]>