From: "lewi9908" Newsgroups: comp.os.msdos.djgpp Subject: Re: AT&T inline asm in DJGPP... Date: Sun, 1 Dec 2002 20:10:14 -0800 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3DEAC1E0 DOT 27F7E16C AT yahoo DOT com DOT au> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Complaints-To: abuse AT supernews DOT com Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thank you... "Jason Hood" wrote in message news:3DEAC1E0 DOT 27F7E16C AT yahoo DOT com DOT au... > > > lewi9908 wrote: > > > > and byte [edx], 0x0 ;Check for Null char > > jz short PrintDone > > mov byte al, [edx] > > I think you want something like: > > mov byte al, [edx] > test al,al > jz short PrintDone > > here. "and byte [edx], 0x0" is always going to set [edx] to zero. > > Jason.