Re: [Clax86list] Why doesn't this NASM program work? It loops endlessly

From: Charles A. Crayne (spamtrap_at_crayne.org)
Date: 03/25/05


Date: Fri, 25 Mar 2005 19:25:17 +0000 (UTC)

On Fri, 25 Mar 2005 18:49:40 +0000 (UTC)
Francesca <spamtrap@crayne.org> wrote:

:I compiled it on Mandrake Linux, but it prints "ello World", without H,
:endlessly.

Because cx is merely the lower part of ecx, and therefore, you are using
the same register for two different purposes.

-- Chuck